summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-01-20 09:41:31 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-01-20 09:41:31 +0000
commit248368f60a8c23080efc6504f064761425f23d4f (patch)
tree7b6e3467c95feeaecae209bf5d42aa6b3c9c25df
parent21e10b2d886e9552bc743116a51094f7ed456497 (diff)
Notes
-rw-r--r--usr.bin/ftp/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c
index 1381f2e4dbcf..a34ca3424dbd 100644
--- a/usr.bin/ftp/util.c
+++ b/usr.bin/ftp/util.c
@@ -528,7 +528,6 @@ remotemodtime(file, noisy)
* characters.
*/
if (sscanf(reply_string, "%*s %16s", mtbuf) == 1) {
- bzero(&timebuf, sizeof(timebuf));
fmt = NULL;
len = strlen(mtbuf);
y2kbug = 0;
@@ -538,6 +537,7 @@ remotemodtime(file, noisy)
} else if (len == 14)
fmt = "%04d%02d%02d%02d%02d%02d";
if (fmt != NULL)
+ memset(&timebuf, 0, sizeof(timebuf));
if (sscanf(mtbuf, fmt, &year, &month,
&timebuf.tm_mday, &timebuf.tm_hour,
&timebuf.tm_min, &timebuf.tm_sec) == 6) {