projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
httpd: fix handling of range requests
[oweals/busybox.git]
/
libbb
/
time.c
diff --git
a/libbb/time.c
b/libbb/time.c
index aa19a47d46bcefc0925bae7ab4e8912daaca55b0..82e6cb172db04efe81a48ba2f840308ab0da8ed9 100644
(file)
--- a/
libbb/time.c
+++ b/
libbb/time.c
@@
-186,6
+186,7
@@
void FAST_FUNC parse_datestr(const char *date_str, struct tm *ptm)
} else {
bb_error_msg_and_die(bb_msg_invalid_date, date_str);
}
+ ptm->tm_sec = 0; /* assume zero if [.SS] is not given */
if (end == '.') {
/* xxx.SS */
if (sscanf(strchr(date_str, '.') + 1, "%u%c",