From d57d9f68e75f64eb936102584175179c8471ee5f Mon Sep 17 00:00:00 2001 From: Shigeyuki Fukushima Date: Fri, 20 Apr 2001 13:14:16 +0000 Subject: Fix fatal error when printing error message(using device message). Submitted by: Kenneth Ingham --- sysutils/eject/files/patch-aa | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sysutils/eject/files/patch-aa') diff --git a/sysutils/eject/files/patch-aa b/sysutils/eject/files/patch-aa index aa38c14c55f1..20f9b91515ae 100644 --- a/sysutils/eject/files/patch-aa +++ b/sysutils/eject/files/patch-aa @@ -1,5 +1,5 @@ ---- eject.c.orig Mon Aug 21 18:49:55 2000 -+++ eject.c Mon Aug 21 19:00:45 2000 +--- eject.c.orig Tue Jan 4 23:42:12 2000 ++++ eject.c Fri Apr 20 22:10:06 2001 @@ -43,8 +43,8 @@ extern int optind; @@ -59,7 +59,8 @@ + if (asprintf(device, "/dev/%sc", name) == -1) + return sts; if (vflag || nflag) { - printf("%s: using device %s\n", program, device); +- printf("%s: using device %s\n", program, device); ++ printf("%s: using device %s\n", program, *device); } - sts = stat(device, &sb); + sts = stat(*device, &sb); -- cgit v1.2.3