andi Tue Mar 30 03:56:29 2004 EDT
Modified files:
/php-src/ext/standard incomplete_class.c
Log:
- Tiny improvement.
http://cvs.php.net/diff.php/php-src/ext/standard/incomplete_class.c?r1=1.22&r2=1.23&ty=u
Index: php-src/ext/standard/incomplete_class.c
diff -u php-src/ext/standard/incomplete_class.c:1.22
php-src/ext/standard/incomplete_class.c:1.23
--- php-src/ext/standard/incomplete_class.c:1.22 Thu Mar 18 11:54:36 2004
+++ php-src/ext/standard/incomplete_class.c Tue Mar 30 03:56:29 2004
@@ -17,7 +17,7 @@
*/
-/* $Id: incomplete_class.c,v 1.22 2004/03/18 16:54:36 dmitry Exp $ */
+/* $Id: incomplete_class.c,v 1.23 2004/03/30 08:56:29 andi Exp $ */
#include "php.h"
#include "basic_functions.h"
@@ -42,8 +42,9 @@
class_name = php_lookup_class_name(EG(This), NULL);
}
- if (!class_name)
- class_name = estrdup("unknown");
+ if (!class_name) {
+ class_name = estrndup("unknown", sizeof("unknown")-1);
+ }
snprintf(buf, sizeof(buf)-1, INCOMPLETE_CLASS_MSG, class_name);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php