]> granicus.if.org Git - php/commitdiff
%d -> %ld
authorAntony Dovgal <tony2001@php.net>
Thu, 10 May 2007 21:52:10 +0000 (21:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 10 May 2007 21:52:10 +0000 (21:52 +0000)
ext/soap/php_http.c

index b4877725564e3435be5038d6a72aa94a84e010e7..e59934dd78063aba22f5d6fbaee3587820a7aac5 100644 (file)
@@ -472,7 +472,7 @@ try_again:
                                        unsigned char hash[16];
 
                                        PHP_MD5Init(&md5ctx);
-                                       snprintf(cnonce, sizeof(cnonce), "%d", php_rand(TSRMLS_C));
+                                       snprintf(cnonce, sizeof(cnonce), "%ld", php_rand(TSRMLS_C));
                                        PHP_MD5Update(&md5ctx, (unsigned char*)cnonce, strlen(cnonce));
                                        PHP_MD5Final(hash, &md5ctx);
                                        make_digest(cnonce, hash);