mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
- Tiny improvement.
This commit is contained in:
parent
ddb1fdaaa9
commit
9094dd7a5e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user