]> granicus.if.org Git - php/commitdiff
fix format string (long port)
authorSascha Schumann <sas@php.net>
Thu, 28 Aug 2003 15:16:20 +0000 (15:16 +0000)
committerSascha Schumann <sas@php.net>
Thu, 28 Aug 2003 15:16:20 +0000 (15:16 +0000)
ext/standard/fsock.c

index 9f7be328ce8a65d95aa4db426c68c40a59a32288..b59e9db8c2435d7edced064cd58632c0e0b6ad85 100644 (file)
@@ -52,7 +52,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
        }
 
        if (persistent) {
-               spprintf(&hashkey, 0, "pfsockopen__%s:%d", host, port);
+               spprintf(&hashkey, 0, "pfsockopen__%s:%ld", host, port);
        }
 
        if (port > 0) {