diff options
| author | christos <christos@NetBSD.org> | 1998-11-17 16:13:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1998-11-17 16:13:59 +0000 |
| commit | 373acb7941aaa5ab45cefe4a8d17e2822aefb27c (patch) | |
| tree | 90a9081141a9d7cf963990292284e133b4dcd029 /lib/libc/stdio/perror.c | |
| parent | 4a3d3570f191dda60967e4fcc02b6249bf4a5e49 (diff) | |
revert previous change; this reveals another bug in lints LINTED option.
Diffstat (limited to 'lib/libc/stdio/perror.c')
| -rw-r--r-- | lib/libc/stdio/perror.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index 229460a9a08..bb6daf625ab 100644 --- a/lib/libc/stdio/perror.c +++ b/lib/libc/stdio/perror.c @@ -1,4 +1,4 @@ -/* $NetBSD: perror.c,v 1.17 1998/11/15 17:19:53 christos Exp $ */ +/* $NetBSD: perror.c,v 1.18 1998/11/17 16:13:59 christos Exp $ */ /* * Copyright (c) 1988, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)perror.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: perror.c,v 1.17 1998/11/15 17:19:53 christos Exp $"); +__RCSID("$NetBSD: perror.c,v 1.18 1998/11/17 16:13:59 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -83,9 +83,9 @@ perror(s) v->iov_len = 2; v++; } - v->iov_len = strlen(v->iov_base); /* LINTED we don't touch the string */ v->iov_base = (void *)__strerror(errno, buf, sizeof(buf)); + v->iov_len = strlen(v->iov_base); v++; v->iov_len = 1; v->iov_base = "\n"; |
