hholzgra Fri Feb 28 01:51:36 2003 EDT
Modified files: (Branch: PHP_4)
/php4/ext/yp yp.c
Log:
MFphp5
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.31.8.1.2.1 php4/ext/yp/yp.c:1.31.8.1.2.2
--- php4/ext/yp/yp.c:1.31.8.1.2.1 Wed Feb 26 13:00:59 2003
+++ php4/ext/yp/yp.c Fri Feb 28 01:51:36 2003
@@ -16,7 +16,7 @@
| Fredrik Ohrn |
+----------------------------------------------------------------------+
*/
-/* $Id: yp.c,v 1.31.8.1.2.1 2003/02/26 18:00:59 hholzgra Exp $ */
+/* $Id: yp.c,v 1.31.8.1.2.2 2003/02/28 06:51:36 hholzgra Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -294,8 +294,7 @@
if (inkeylen) {
char *key = emalloc(inkeylen+1);
if(key) {
- strncpy(key, inkey, inkeylen);
- key[inkeylen] = '\0';
+ strncpy(key, inkey, inkeylen+1);
add_assoc_stringl_ex((zval *) indata, key, inkeylen+1,
inval, invallen, 1);
efree(key);
} else {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php