]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
And it even compiles..
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Mar 2010 16:09:48 +0000 (17:09 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Mar 2010 16:09:48 +0000 (17:09 +0100)
src/auth/digest/auth_digest.cc

index 46c61f191da22e44bf9d912a5f992af63478806d..ceeb3d4fad0acfad7ff1fc61cca337d839bfbc47 100644 (file)
@@ -1103,7 +1103,7 @@ AuthDigestConfig::decode(char const *proxy_auth)
     const char *pos = NULL;
     char *username = NULL;
     digest_nonce_h *nonce;
-    size_t ilen;
+    int ilen;
 
     debugs(29, 9, "authenticateDigestDecodeAuth: beginning");
 
@@ -1121,13 +1121,13 @@ AuthDigestConfig::decode(char const *proxy_auth)
     String temp(proxy_auth);
 
     while (strListGetItem(&temp, ',', &item, &ilen, &pos)) {
-       String value();
+       String value;
        size_t nlen;
        /* isolate directive name */
        if ((p = (const char *)memchr(item, '=', ilen)) && (p - item < ilen)) {
             nlen = p++ - item;
            if (!httpHeaderParseQuotedString(p, &value))
-               value.initLimit(p, ilen - (p - item));
+               value.limitInit(p, ilen - (p - item));
        } else
            nlen = ilen;