cvs: php4 /ext/pgsql pgsql.c

From: Date: Sun, 24 Nov 2002 15:11:43 +0000
Subject: cvs: php4 /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16616@lists.php.net to get a copy of this message
sterling Sun Nov 24 10:11:43 2002 EDT Modified files: /php4/ext/pgsql pgsql.c Log: null after the erealloc() Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.245 php4/ext/pgsql/pgsql.c:1.246 --- php4/ext/pgsql/pgsql.c:1.245 Sun Nov 24 02:45:26 2002 +++ php4/ext/pgsql/pgsql.c Sun Nov 24 10:11:43 2002 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.245 2002/11/24 07:45:26 yohgaki Exp $ */ +/* $Id: pgsql.c,v 1.246 2002/11/24 15:11:43 sterling Exp $ */ #include <stdlib.h> @@ -2730,8 +2730,8 @@ break; } } - buffer[buflen] = '\0'; buffer = erealloc(buffer, buflen+1); + buffer[buflen] = 0; if (buffer == NULL) return NULL;

« previous php.cvs (#16616) next »