aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/basicauth.c2
-rw-r--r--src/microhttpd/connection.c2
-rw-r--r--src/microhttpd/digestauth.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/basicauth.c b/src/microhttpd/basicauth.c
index 587595b9..0d1309f2 100644
--- a/src/microhttpd/basicauth.c
+++ b/src/microhttpd/basicauth.c
@@ -121,7 +121,7 @@ MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection,
121 size_t hlen = strlen(realm) + strlen("Basic realm=\"\"") + 1; 121 size_t hlen = strlen(realm) + strlen("Basic realm=\"\"") + 1;
122 char header[hlen]; 122 char header[hlen];
123 123
124 snprintf (header, 124 MHD_snprintf_ (header,
125 sizeof (header), 125 sizeof (header),
126 "Basic realm=\"%s\"", 126 "Basic realm=\"%s\"",
127 realm); 127 realm);
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 8464e909..d017313a 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -476,7 +476,7 @@ try_ready_chunked_body (struct MHD_Connection *connection)
476 } 476 }
477 if (ret > 0xFFFFFF) 477 if (ret > 0xFFFFFF)
478 ret = 0xFFFFFF; 478 ret = 0xFFFFFF;
479 snprintf (cbuf, 479 MHD_snprintf_ (cbuf,
480 sizeof (cbuf), 480 sizeof (cbuf),
481 "%X\r\n", (unsigned int) ret); 481 "%X\r\n", (unsigned int) ret);
482 cblen = strlen (cbuf); 482 cblen = strlen (cbuf);
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,