man-pages/man-pages-3.32-snprintf.patch
Ivana Hutarova Varekova 006d98105d - resolves: #681781
snprintf man page is wrong
2011-03-25 13:07:37 +01:00

18 lines
599 B
Diff

diff -up man-pages-3.32/man3/printf.3.pom man-pages-3.32/man3/printf.3
--- man-pages-3.32/man3/printf.3.pom 2011-03-25 11:12:33.000000000 +0100
+++ man-pages-3.32/man3/printf.3 2011-03-25 12:31:17.000000000 +0100
@@ -108,7 +108,11 @@ write at most
bytes (including the trailing null byte (\(aq\e0\(aq)) to
.IR str .
.PP
-The trailing null byte won't be added to str, if the string is truncated.
+The trailing null byte is added to
+.IR str ,
+unless
+.IR size
+is zero.
The functions
.BR vprintf (),
.BR vfprintf (),
diff -up man-pages-3.32/man3/snprintf.3.pom man-pages-3.32/man3/snprintf.3