hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject svn commit: r704662 - in /hadoop/zookeeper/trunk: CHANGES.txt src/c/src/cli.c
Date Tue, 14 Oct 2008 20:17:30 GMT
Author: phunt
Date: Tue Oct 14 13:17:30 2008
New Revision: 704662

URL: http://svn.apache.org/viewvc?rev=704662&view=rev
Log:
ZOOKEEPER-183. Array subscript is above array bounds in od_completion(), src/cli.c

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/src/c/src/cli.c

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=704662&r1=704661&r2=704662&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Tue Oct 14 13:17:30 2008
@@ -20,6 +20,12 @@
 
   BUGFIXES: 
 
+  ZOOKEEPER-183. Array subscript is above array bounds in od_completion(),
+  src/cli.c. (Maxim P. Dementiev via phunt)
+
+  ZOOKEEPER-182.  zookeeper_init accepts empty host-port string and returns
+  valid pointer to zhandle_t. (Maxim P. Dementiev via phunt)
+
   ZOOKEEPER-17. zookeeper_init doc needs clarification (phunt)
 
   ZOOKEEPER-181. Some Source Forge Documents did not get moved over: 

Modified: hadoop/zookeeper/trunk/src/c/src/cli.c
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/c/src/cli.c?rev=704662&r1=704661&r2=704662&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/c/src/cli.c (original)
+++ hadoop/zookeeper/trunk/src/c/src/cli.c Tue Oct 14 13:17:30 2008
@@ -215,7 +215,7 @@
     for (i=0; i<to_send; i++) {
         char buf[4096*16];
         memset(buf, -1, sizeof(buf)-1);
-        buf[sizeof(buf)]=0;
+        buf[sizeof(buf)-1]=0;
         sendRequest(buf);
     }
 }



Mime
View raw message