Browse Source

basicauth: very minor optimisaion

Evgeny Grin (Karlson2k) 3 years ago
parent
commit
ca23632064
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/microhttpd/basicauth.c

+ 1 - 1
src/microhttpd/basicauth.c

@@ -127,7 +127,7 @@ MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection,
 {
   enum MHD_Result ret;
   int res;
-  size_t hlen = strlen (realm) + strlen ("Basic realm=\"\"") + 1;
+  size_t hlen = strlen (realm) + MHD_STATICSTR_LEN_ ("Basic realm=\"\"") + 1;
   char *header;
 
   if (NULL == response)