summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-06-29 16:14:00 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-06-29 16:14:00 +0000
commit96ce13720fbe5b256644e5ca290b10e75d698017 (patch)
tree2889e62a23ad3122aacda1c64f00839d97f48531 /lib/libc/gen
parent60bce3d8b05b1cc887b05c5e0a9deecd31d19e88 (diff)
Fix a bad example. We don't want to suggest that people pass
a string to err that could have % escapes in it.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/err.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/err.3 b/lib/libc/gen/err.3
index 0a1444f85e9..8abf6848ed3 100644
--- a/lib/libc/gen/err.3
+++ b/lib/libc/gen/err.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: err.3,v 1.9 1999/10/06 02:30:43 aaron Exp $
+.\" $OpenBSD: err.3,v 1.10 2000/06/29 16:13:59 millert Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -125,7 +125,7 @@ information string and exit:
if ((p = malloc(size)) == NULL)
err(1, NULL);
if ((fd = open(file_name, O_RDONLY, 0)) == -1)
- err(1, file_name);
+ err(1, "%s", file_name);
.Ed
.Pp
Display an error message and exit: