The C example was wrong.
Is there any reason for this program to still be around???
This commit is contained in:
parent
6a8524d62e
commit
56b4a88fd0
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mkstr.1,v 1.5 1998/06/08 12:05:34 lukem Exp $
|
||||
.\" $NetBSD: mkstr.1,v 1.6 2001/11/21 15:30:00 ragge Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -115,7 +115,7 @@ oops:
|
|||
exit 1 ;
|
||||
}
|
||||
}
|
||||
if (lseek(efil, (long) a1, 0) \ read(efil, buf, 256) <= 0)
|
||||
if (lseek(efil, a1, 0) < 0 || read(efil, buf, 256) <= 0)
|
||||
goto oops;
|
||||
printf(buf, a2, a3, a4);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue