cvs: php4 /ext/pgsql pgsql.c
| From: | Yasuo Ohgaki | Date: | Sun, 24 Nov 2002 07:45:27 +0000 |
| Subject: | cvs: php4 /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16612@lists.php.net to get a copy of this message | ||
yohgaki Sun Nov 24 02:45:27 2002 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
Added missing '\0'
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.244 php4/ext/pgsql/pgsql.c:1.245
--- php4/ext/pgsql/pgsql.c:1.244 Tue Nov 12 04:07:36 2002
+++ php4/ext/pgsql/pgsql.c Sun Nov 24 02:45:26 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.244 2002/11/12 09:07:36 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.245 2002/11/24 07:45:26 yohgaki Exp $ */
#include <stdlib.h>
@@ -2730,7 +2730,8 @@
break;
}
}
- buffer = erealloc(buffer, buflen);
+ buffer[buflen] = '\0';
+ buffer = erealloc(buffer, buflen+1);
if (buffer == NULL)
return NULL;