]> granicus.if.org Git - apache/commitdiff
Actually use the whole buffer for reading.
authorStefan Fritsch <sf@apache.org>
Sun, 18 Oct 2009 21:34:47 +0000 (21:34 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 18 Oct 2009 21:34:47 +0000 (21:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@826528 13f79535-47bb-0310-9956-ffa450edef68

support/htdigest.c

index d117b7aaec48dcbd8f19c536fefdaba4c0a04736..b92d2eb4e9c4a0de57c72bc2868683bb963ac63d 100644 (file)
@@ -255,7 +255,7 @@ int main(int argc, const char * const argv[])
     apr_cpystrn(realm, argv[2], sizeof(realm));
 
     found = 0;
-    while (!(get_line(line, MAX_STRING_LEN, f))) {
+    while (!(get_line(line, sizeof(line), f))) {
         if (found || (line[0] == '#') || (!line[0])) {
             putline(tfp, line);
             continue;