cvs: php4 /ext/skeleton skeleton.c
| From: | Sean Bright | Date: | Fri, 06 Apr 2001 14:42:07 +0000 |
| Subject: | cvs: php4 /ext/skeleton skeleton.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5009@lists.php.net to get a copy of this message | ||
elixer Fri Apr 6 07:42:07 2001 EDT
Modified files:
/php4/ext/skeleton skeleton.c
Log:
Fixed possible overflow.
Index: php4/ext/skeleton/skeleton.c
diff -u php4/ext/skeleton/skeleton.c:1.11 php4/ext/skeleton/skeleton.c:1.12
--- php4/ext/skeleton/skeleton.c:1.11 Fri Dec 1 06:56:30 2000
+++ php4/ext/skeleton/skeleton.c Fri Apr 6 07:42:06 2001
@@ -97,7 +97,7 @@
convert_to_string_ex(arg);
- len = sprintf(string, "Congratulations, you have successfully modified ext/extname/config.m4,
module %s is compiled into PHP", Z_STRVAL_PP(arg));
+ len = sprintf(string, "Congratulations, you have successfully modified ext/%.80s/config.m4,
module %.80s is compiled into PHP", "extname", Z_STRVAL_PP(arg));
RETURN_STRINGL(string, len, 1);
}
/* }}} */