projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bf7540
)
(my_strftime): Update from FSF.
author
Jim Meyering
<jim@meyering.net>
Sun, 27 Sep 1998 12:45:33 +0000
(12:45 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 27 Sep 1998 12:45:33 +0000
(12:45 +0000)
lib/strftime.c
patch
|
blob
|
history
diff --git
a/lib/strftime.c
b/lib/strftime.c
index 4e6407a409aa7533874fc8520b006cd452dc3ecb..519c2998e13536297c88aed33cb00d763569ca1d 100644
(file)
--- a/
lib/strftime.c
+++ b/
lib/strftime.c
@@
-750,8
+750,9
@@
my_strftime (s, maxsize, format, tp)
*u++ = modifier;
*u++ = format_char;
*u = '\0';
+ ubuf[0] = '\1';
len = strftime (ubuf, sizeof ubuf, ufmt, tp);
- if (len == 0)
+ if (len == 0
&& ubuf[0] != '\0'
)
return 0;
cpy (len, ubuf);
}