]> sjero.net Git - wget/commitdiff
[svn] Committed patch from <dp8zyzz1se.fsf@mraz.iskon.hr>.
authorhniksic <devnull@localhost>
Fri, 31 Mar 2000 13:51:53 +0000 (05:51 -0800)
committerhniksic <devnull@localhost>
Fri, 31 Mar 2000 13:51:53 +0000 (05:51 -0800)
src/ChangeLog
src/ftp-opie.c

index d12db61f16b9deef6f3f72cec1af2cf3a2c2ff5e..5b5c5742e523a8ec9da4c0d0df3b20e907fe8db5 100644 (file)
@@ -1,3 +1,7 @@
+1998-12-22  Alexander V. Lukyanov  <lav@yars.free.net>
+
+       * ftp-opie.c (btoe): Zero-terminate OSTORE.
+
 2000-03-21  Hrvoje Niksic  <hniksic@iskon.hr>
 
        * wget.h (DO_REALLOC_FROM_ALLOCA): Ditto.
index ff93e8875c9070f0c78d1dfbebdeccbce7c3f1d2..1561de75669ea082a104db0afbee604fa64d2b09 100644 (file)
@@ -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;