From: Marcus Boerger Date: Sat, 29 Oct 2005 15:49:28 +0000 (+0000) Subject: - It's better to use our own strtol here X-Git-Tag: RELEASE_2_0_1~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ae517c131c70716cec4f1535e8c4645d219920a;p=php - It's better to use our own strtol here --- 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;