[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wget
Subject:    Bugfix
From:       Hrvoje Niksic <hniksic () iskon ! hr>
Date:       2000-03-31 13:50:41
[Download RAW message or body]

Sent out by a contributor some time ago.

Index: ChangeLog
===================================================================
RCS file: /pack/anoncvs/wget/src/ChangeLog,v
retrieving revision 1.15
diff -u -r1.15 ChangeLog
--- ChangeLog	2000/03/21 15:47:45	1.15
+++ ChangeLog	2000/03/31 13:49:29
@@ -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: ftp-opie.c
===================================================================
RCS file: /pack/anoncvs/wget/src/ftp-opie.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ftp-opie.c
--- ftp-opie.c	1999/12/02 07:42:27	1.1.1.1
+++ ftp-opie.c	2000/03/31 13:50:00
@@ -2138,6 +2138,8 @@
   *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;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic