From: Stanislav Malyshev Date: Wed, 21 Feb 2007 21:11:32 +0000 (+0000) Subject: use snprintf X-Git-Tag: RELEASE_1_0_1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=330573105401218f184bafb6e3b568d615f4ad2c;p=php use snprintf --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index c505894ee8..afa0a27283 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -474,7 +474,7 @@ try_again: make_digest(cnonce, hash); client->digest_nc++; - sprintf(nc, "%08ld", client->digest_nc); + snprintf(nc, sizeof(nc), "%08ld", client->digest_nc); PHP_MD5Init(&md5ctx); PHP_MD5Update(&md5ctx, (unsigned char*)client->login, strlen(client->login));