[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] oops, i broke buffers. fixed.



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	buffers.c 
Log Message:
oops, i broke buffers. fixed.


Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/buffers.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- buffers.c	14 Dec 2003 04:18:43 -0000	1.54
+++ buffers.c	14 Dec 2003 08:15:41 -0000	1.55
@@ -290,9 +290,10 @@
 
   assert(string && BUF_OK(buf));
 
-  if (buf_ensure_capacity(buf, buf->datalen+string_len))
+  if (buf_ensure_capacity(buf, buf->datalen+string_len)) {
     log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.",buf->datalen+string_len);
     return -1;
+  }
 
   memcpy(buf->mem+buf->datalen, string, string_len);
   buf->datalen += string_len;