hholzgra                Fri Feb 28 01:51:17 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/yp        yp.c 
  Log:
  MFphp5
  
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.31.8.2 php4/ext/yp/yp.c:1.31.8.3
--- php4/ext/yp/yp.c:1.31.8.2   Wed Feb 26 12:38:02 2003
+++ php4/ext/yp/yp.c    Fri Feb 28 01:51:16 2003
@@ -16,7 +16,7 @@
    |          Fredrik Ohrn                                                |
    +----------------------------------------------------------------------+
  */
-/* $Id: yp.c,v 1.31.8.2 2003/02/26 17:38:02 hholzgra Exp $ */
+/* $Id: yp.c,v 1.31.8.3 2003/02/28 06:51:16 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';
+                               strlcpy(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

Reply via email to