diff options
author | Sterling Hughes <sterling@php.net> | 2002-11-24 15:11:43 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2002-11-24 15:11:43 +0000 |
commit | 490903da5ad33a7ff40d81339fd5803f56c935b1 (patch) | |
tree | 85b68f9225d0ef365ba62f3ec6113b6c0056aa03 /ext | |
parent | 51f5b6debbed1da714fd21d76e73609ce9463627 (diff) | |
download | php-git-490903da5ad33a7ff40d81339fd5803f56c935b1.tar.gz |
null after the erealloc()
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 6aee07e890..0b75af16fa 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2730,8 +2730,8 @@ static unsigned char * php_pgsql_unescape_bytea(unsigned char *strtext, size_t * break; } } - buffer[buflen] = '\0'; buffer = erealloc(buffer, buflen+1); + buffer[buflen] = 0; if (buffer == NULL) return NULL; |