Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/lib/libc/stdio Pull up revision 1.14 (requested by klei...
details: https://anonhg.NetBSD.org/src/rev/7db4f4d60e30
branches: netbsd-1-5
changeset: 489927:7db4f4d60e30
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 14:03:56 2000 +0000
description:
Pull up revision 1.14 (requested by kleink):
C99 alignment: a buffer size of 0 is permitted. Also, when
size is 0, a null buffer pointer may be passed. Fixes PR#9603.
diffstat:
lib/libc/stdio/printf.3 | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r d4480c58405d -r 7db4f4d60e30 lib/libc/stdio/printf.3
--- a/lib/libc/stdio/printf.3 Thu Oct 19 14:01:55 2000 +0000
+++ b/lib/libc/stdio/printf.3 Thu Oct 19 14:03:56 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: printf.3,v 1.13 1998/09/14 21:10:18 tv Exp $
+.\" $NetBSD: printf.3,v 1.13.10.1 2000/10/19 14:03:56 he Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -149,6 +149,11 @@
.Fa size
argument, the string was too short
and some of the printed characters were discarded.
+If
+.Fa size
+is zero, nothing is written and
+.Fa str
+may be a NULL pointer.
.Pp
.Fn sprintf
and
Home |
Main Index |
Thread Index |
Old Index