iliaa Sat Feb 24 18:00:57 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/interbase ibase_query.c
Log:
strncpy() -> strlcpy()
http://cvs.php.net/viewvc.cgi/php-src/ext/interbase/ibase_query.c?r1=1.23.2.1.2.6&r2=1.23.2.1.2.7&diff_format=u
Index: php-src/ext/interbase/ibase_query.c
diff -u php-src/ext/interbase/ibase_query.c:1.23.2.1.2.6
php-src/ext/interbase/ibase_query.c:1.23.2.1.2.7
--- php-src/ext/interbase/ibase_query.c:1.23.2.1.2.6 Sat Feb 24 02:17:24 2007
+++ php-src/ext/interbase/ibase_query.c Sat Feb 24 18:00:56 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ibase_query.c,v 1.23.2.1.2.6 2007/02/24 02:17:24 helly Exp $ */
+/* $Id: ibase_query.c,v 1.23.2.1.2.7 2007/02/24 18:00:56 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -603,9 +603,8 @@
break;
default:
convert_to_string(val);
- strncpy(buf, Z_STRVAL_P(val),
array->el_size);
- buf[array->el_size-1] = '\0';
- }
+ strlcpy(buf, Z_STRVAL_P(val), buf_size);
+ }
}
}
return SUCCESS;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php