/[Apache-SVN]/httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c	2006/10/26 15:39:41	468042
+++ httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c	2007/09/01 13:26:27	571798
@@ -138,7 +138,7 @@
                 char *str = apr_pstrcat(r->pool, AUTHN_PREFIX,
                                         name,
                                         NULL);
-                int j = 13;
+                int j = sizeof(AUTHN_PREFIX)-1; /* string length of "AUTHENTICATE_", excluding the trailing NIL */
                 while (str[j]) {
                     if (!apr_isalnum(str[j])) {
                         str[j] = '_';
@@ -222,7 +222,7 @@
                 char *str = apr_pstrcat(r->pool, AUTHN_PREFIX,
                                         name,
                                         NULL);
-                int j = 13;
+                int j = sizeof(AUTHN_PREFIX)-1; /* string length of "AUTHENTICATE_", excluding the trailing NIL */
                 while (str[j]) {
                     if (!apr_isalnum(str[j])) {
                         str[j] = '_';

 

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2