You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by jg...@apache.org on 2006/02/02 22:14:27 UTC
svn commit: r374504 - /httpd/mod_python/trunk/src/connobject.c
Author: jgallacher
Date: Thu Feb 2 13:14:25 2006
New Revision: 374504
URL: http://svn.apache.org/viewcvs?rev=374504&view=rev
Log:
Fixed buffer resizing bug in _conn_read().
Ref MODPYTHON-102
Modified:
httpd/mod_python/trunk/src/connobject.c
Modified: httpd/mod_python/trunk/src/connobject.c
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/src/connobject.c?rev=374504&r1=374503&r2=374504&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/connobject.c (original)
+++ httpd/mod_python/trunk/src/connobject.c Thu Feb 2 13:14:25 2006
@@ -135,7 +135,7 @@
_PyString_Resize(&result, bufsize + HUGE_STRING_LEN);
buffer = PyString_AS_STRING((PyStringObject *) result);
- buffer += HUGE_STRING_LEN;
+ buffer += bufsize;
bufsize += HUGE_STRING_LEN;
}