[or-cvs] Add missing dereference; stop throwing zeroes around.

Nick Mathewson nickm at seul.org
Sun Nov 7 22:18:02 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv32593/src/or

Modified Files:
	buffers.c 
Log Message:
Add missing dereference; stop throwing zeroes around.

Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/buffers.c,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -d -r1.112 -r1.113
--- buffers.c	7 Nov 2004 01:33:05 -0000	1.112
+++ buffers.c	7 Nov 2004 22:18:00 -0000	1.113
@@ -670,7 +670,7 @@
   if (len) {
     *body_out = tor_malloc(len+1);
     memcpy(*body_out, buf->mem+4, len);
-    body_out[len] = '\0';
+    (*body_out)[len] = '\0';
   } else {
     *body_out = NULL;
   }



More information about the tor-commits mailing list