From: hniksic Date: Fri, 31 Mar 2000 13:51:53 +0000 (-0800) Subject: [svn] Committed patch from . X-Git-Tag: v1.13~2501 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=6b0aaebf33ceb87b7d560731dd66dd278c2ca25a [svn] Committed patch from . --- diff --git a/src/ChangeLog b/src/ChangeLog index d12db61f..5b5c5742 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +1998-12-22 Alexander V. Lukyanov + + * ftp-opie.c (btoe): Zero-terminate OSTORE. + 2000-03-21 Hrvoje Niksic * wget.h (DO_REALLOC_FROM_ALLOCA): Ditto. diff --git a/src/ftp-opie.c b/src/ftp-opie.c index ff93e887..1561de75 100644 --- a/src/ftp-opie.c +++ b/src/ftp-opie.c @@ -2138,6 +2138,8 @@ btoe (char *store, const char *c) *store++ = ' '; memcpy (store, &Wp[extract (cp, 55, 11)][0], 4); + store[4] = '\0'; /* make sure the string is zero-terminated */ + DEBUGP (("store is `%s'\n", ostore)); return ostore;