From 7ae517c131c70716cec4f1535e8c4645d219920a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 29 Oct 2005 15:49:28 +0000 Subject: [PATCH] - It's better to use our own strtol here --- ext/standard/php_fopen_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index d15ec90452..9cb2e8fe70 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -163,7 +163,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch max_memory = PHP_STREAM_MAX_MEM; if (!strncasecmp(path, "/maxmemory:", 11)) { path += 11; - sscanf(path, "%ld", &max_memory); + max_memory = strtol(path, NULL, 10); if (max_memory < 0) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Max memory must be >= 0"); return NULL; -- 2.50.1