You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2009/10/18 23:34:47 UTC

svn commit: r826528 - /httpd/httpd/trunk/support/htdigest.c

Author: sf
Date: Sun Oct 18 21:34:47 2009
New Revision: 826528

URL: http://svn.apache.org/viewvc?rev=826528&view=rev
Log:
Actually use the whole buffer for reading.

Modified:
    httpd/httpd/trunk/support/htdigest.c

Modified: httpd/httpd/trunk/support/htdigest.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htdigest.c?rev=826528&r1=826527&r2=826528&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htdigest.c (original)
+++ httpd/httpd/trunk/support/htdigest.c Sun Oct 18 21:34:47 2009
@@ -255,7 +255,7 @@
     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;