diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-04-05 01:44:39 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-04-05 01:44:39 +0000 |
commit | e6ab2f5371f750f1786d28bf1b2058ac902dbea4 (patch) | |
tree | 3bff153025cf1213eecee8ba1c45274ab13692f7 /lib | |
parent | d53180f90fdf7b7b130559c5f8f668fb665a40c5 (diff) |
Use the more likely pointer in a sample code fragment; miod@ ok.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/fgets.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3 index 39da3b65258..9ca36d0859f 100644 --- a/lib/libc/stdio/fgets.3 +++ b/lib/libc/stdio/fgets.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fgets.3,v 1.12 2002/03/05 16:53:59 millert Exp $ +.\" $OpenBSD: fgets.3,v 1.13 2002/04/05 01:44:38 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -133,7 +133,7 @@ string is too long if it does not contain a newline: exit(1); } *p = '\e0'; - printf("%s\en", p); + printf("%s\en", buf); } .Ed .Pp |