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

[or-cvs] band-aid to address bug 291.



Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-011x/tor/src/or

Modified Files:
      Tag: tor-0_1_1-patches
	control.c 
Log Message:
band-aid to address bug 291.
needs a better fix down the road.


Index: control.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.189.2.1
retrieving revision 1.189.2.2
diff -u -p -d -r1.189.2.1 -r1.189.2.2
--- control.c	18 Apr 2006 03:05:34 -0000	1.189.2.1
+++ control.c	22 May 2006 23:01:09 -0000	1.189.2.2
@@ -443,12 +443,12 @@ get_escaped_string(const char *start, si
  * <b>conn</b>-\>outbuf.  The message may be truncated if it is too long,
  * but it will always end with a CRLF sequence.
  *
- * Currently the length of the message is limited to 1024 (including the
+ * Currently the length of the message is limited to 2048 (including the
  * ending \n\r\0. */
 static void
 connection_printf_to_buf(connection_t *conn, const char *format, ...)
 {
-#define CONNECTION_PRINTF_TO_BUF_BUFFERSIZE 1024
+#define CONNECTION_PRINTF_TO_BUF_BUFFERSIZE 2048
   va_list ap;
   char buf[CONNECTION_PRINTF_TO_BUF_BUFFERSIZE];
   int r;