Mercurial > hg > octave-kai > gnulib-hg
diff lib/strftime.c @ 1775:96099c7ba283
Update from master source in libc, removing %f.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 06 Apr 1999 14:22:06 +0000 |
parents | 38fd8f5d359d |
children | a5764321dc19 |
line wrap: on
line diff
--- a/lib/strftime.c +++ b/lib/strftime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -10,8 +10,8 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software @@ -1025,7 +1025,6 @@ add (1, *p = '\t'); break; - case 'f': case 'u': /* POSIX.2 extension. */ DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); @@ -1220,7 +1219,7 @@ } } - if (p && i < maxsize) + if (p && maxsize != 0) *p = '\0'; return i; }