diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2005-02-23 20:24:58 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2005-02-23 20:24:58 +0000 |
commit | 2d1cf3342ccdacd1623ce65ac6bb072ebf6cc3cd (patch) | |
tree | 64aec0f57fde34b91e09fd8040f38d6d9a0bc5a9 /lib | |
parent | 3d795e27dee8ce467b2e484862108b822a98d594 (diff) |
use a string format argument instead of nothing in the example
ok otto@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/getdirentries.2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2 index 28bdf2ee3bb..896803c3353 100644 --- a/lib/libc/sys/getdirentries.2 +++ b/lib/libc/sys/getdirentries.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getdirentries.2,v 1.17 2004/10/03 00:11:26 jmc Exp $ +.\" $OpenBSD: getdirentries.2,v 1.18 2005/02/23 20:24:57 robert Exp $ .\" $NetBSD: getdirentries.2,v 1.7 1995/10/12 15:40:50 jtc Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -169,7 +169,7 @@ while ((nbytes = getdirentries(fd, buf, bufsize, &base)) > 0) { cp = buf; while (cp < ebuf) { dp = (struct dirent *)cp; - printf("%\en", dp->d_name); + printf("%s\en", dp->d_name); cp += dp->d_reclen; } } |