diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-12-22 19:42:18 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-12-22 19:42:18 +0000 |
commit | 54edb3cd8fb0d8269cbfa29a67a4c2055386d1c6 (patch) | |
tree | bb7545c5196318dd52100e224d7c0b4ca5825d30 /src/microhttpd/digestauth.c | |
parent | 913ced4bdd28c16b62e1847cb035b6036b569ffc (diff) | |
download | libmicrohttpd-54edb3cd8fb0d8269cbfa29a67a4c2055386d1c6.tar.gz libmicrohttpd-54edb3cd8fb0d8269cbfa29a67a4c2055386d1c6.zip |
Replace snprintf with platform-independent macro
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r-- | src/microhttpd/digestauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 04676f53..4bab177a 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -791,7 +791,7 @@ MHD_queue_auth_fail_response (struct MHD_Connection *connection, | |||
791 | return MHD_NO; | 791 | return MHD_NO; |
792 | } | 792 | } |
793 | /* Building the authentication header */ | 793 | /* Building the authentication header */ |
794 | hlen = snprintf (NULL, | 794 | hlen = MHD_snprintf_(NULL, |
795 | 0, | 795 | 0, |
796 | "Digest realm=\"%s\",qop=\"auth\",nonce=\"%s\",opaque=\"%s\"%s", | 796 | "Digest realm=\"%s\",qop=\"auth\",nonce=\"%s\",opaque=\"%s\"%s", |
797 | realm, | 797 | realm, |
@@ -803,7 +803,7 @@ MHD_queue_auth_fail_response (struct MHD_Connection *connection, | |||
803 | { | 803 | { |
804 | char header[hlen + 1]; | 804 | char header[hlen + 1]; |
805 | 805 | ||
806 | snprintf (header, | 806 | MHD_snprintf_(header, |
807 | sizeof(header), | 807 | sizeof(header), |
808 | "Digest realm=\"%s\",qop=\"auth\",nonce=\"%s\",opaque=\"%s\"%s", | 808 | "Digest realm=\"%s\",qop=\"auth\",nonce=\"%s\",opaque=\"%s\"%s", |
809 | realm, | 809 | realm, |