- Tiny improvement.

This commit is contained in:
Andi Gutmans 2004-03-30 08:56:29 +00:00
parent ddb1fdaaa9
commit 9094dd7a5e

View File

@ -42,8 +42,9 @@ static void incomplete_class_message(int error_type TSRMLS_DC)
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);