CVS update: php3/functions

From: Date: Sun, 23 Aug 1998 19:12:10 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-533@lists.php.net to get a copy of this message
Date: Sunday August 23, 1998 @ 15:12 Author: zeev Update of /repository/php3/functions In directory asf:/tmp/cvs-serv13067/functions Modified Files: reg.c Log Message: estrndup() is your friend Index: php3/functions/reg.c diff -c php3/functions/reg.c:1.83 php3/functions/reg.c:1.84 *** php3/functions/reg.c:1.83 Mon Jun 22 16:28:35 1998 --- php3/functions/reg.c Sun Aug 23 15:12:09 1998 *************** *** 28,34 **** | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ ! /* $Id: reg.c,v 1.83 1998/06/22 20:28:35 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif --- 28,34 ---- | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ ! /* $Id: reg.c,v 1.84 1998/08/23 19:12:09 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif *************** *** 188,194 **** if (start != -1 && end > 0 && start < string_len && end < string_len && start < end) { strncpy(buf, &string[start], end - start); entry.value.str.len = end - start; ! entry.value.str.val = estrdup(buf); entry.type = IS_STRING; } else { var_reset(&entry); --- 188,194 ---- if (start != -1 && end > 0 && start < string_len && end < string_len && start < end) { strncpy(buf, &string[start], end - start); entry.value.str.len = end - start; ! entry.value.str.val = estrndup(buf, entry.value.str.len); entry.type = IS_STRING; } else { var_reset(&entry); -- 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 (#533) next »