projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80886e5
)
(underlying_strftime): Set the buffer to a nonzero value before
author
drepper
<drepper>
Thu, 24 Sep 1998 15:01:49 +0000
(15:01 +0000)
committer
drepper
<drepper>
Thu, 24 Sep 1998 15:01:49 +0000
(15:01 +0000)
calling strftime, and check to see whether strftime has set the buffer
to zero. This lets us distinguish between an empty buffer and an
error.
time/strftime.c
patch
|
blob
|
history
diff --git
a/time/strftime.c
b/time/strftime.c
index
2f71db1
..
61f688e
100644
(file)
--- a/
time/strftime.c
+++ b/
time/strftime.c
@@
-748,7
+748,7
@@
my_strftime (s, maxsize, format, tp)
*u++ = format_char;
*u = '\0';
len = strftime (ubuf, sizeof ubuf, ufmt, tp);
- if (len == 0)
+ if (len == 0
&& ubuf[0] != '\0'
)
return 0;
cpy (len, ubuf);
}