CVS update: php3/functions

From: Date: Tue, 05 Jan 1999 12:54:06 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3278@lists.php.net to get a copy of this message
Date: Tuesday January 5, 1999 @ 7:54 Author: sas Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv19130 Modified Files: string.c Log Message: in the case of a failing realloc add a '\0' it's not important, because copying the string later will probably fail... Index: php3/functions/string.c diff -c php3/functions/string.c:1.166 php3/functions/string.c:1.167 *** php3/functions/string.c:1.166 Tue Jan 5 07:47:43 1999 --- php3/functions/string.c Tue Jan 5 07:54:04 1999 *************** *** 30,36 **** */ ! /* $Id: string.c,v 1.166 1999/01/05 12:47:43 sas Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif --- 30,36 ---- */ ! /* $Id: string.c,v 1.167 1999/01/05 12:54:04 sas Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif *************** *** 1352,1357 **** --- 1352,1358 ---- if(off != new) { if(!off) { /* we should raise a warning here */ + *q = '\0'; if(_new_length) *_new_length = q - new; return new; } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3278) next »