snprintf man page is wrong
This commit is contained in:
Ivana Hutarova Varekova 2011-03-25 13:07:37 +01:00
parent ba493cf291
commit 006d98105d
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,17 @@
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

View File

@ -4,7 +4,7 @@
Summary: Man (manual) pages from the Linux Documentation Project
Name: man-pages
Version: 3.32
Release: 10%{?dist}
Release: 11%{?dist}
License: GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE
Group: Documentation
URL: http://www.kernel.org/pub/linux/docs/manpages/
@ -42,6 +42,8 @@ Patch77: man-pages-3.32-readdir.patch
Patch78: man-pages-2.39-gai.conf.patch
#Resolves: #675544
Patch79: man-pages-3.32-spellch.patch
#resolves: #681781
Patch80: man-pages-3.32-snprintf.patch
#Resolves: #655961
Conflicts: quota < 3.17-14
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -81,6 +83,7 @@ rmdir man-pages-posix-%{posix_version}-%{posix_release}
%patch77 -p1
%patch78 -p1
%patch79 -p1
%patch80 -p1
### And now remove those we are not going to use:
@ -136,6 +139,10 @@ rm -rf $RPM_BUILD_ROOT
%lang(en) %{_mandir}/en/man*/*
%changelog
* Fri Mar 25 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 3.32-11
- resolves: #681781
snprintf man page is wrong
* Wed Mar 9 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 3.32-10
- resolves: #675544
perfmonctl(2) typo manpage fix