]> granicus.if.org Git - apache/commitdiff
no strncasecmp because flag has no value
authorEric Covener <covener@apache.org>
Fri, 24 Mar 2017 14:09:52 +0000 (14:09 +0000)
committerEric Covener <covener@apache.org>
Fri, 24 Mar 2017 14:09:52 +0000 (14:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788451 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index 6a32de803d258aeb859227e35a84991a2257a8d2..c887056312d780b64c8f1cafaac16085ca6f8f82 100644 (file)
@@ -495,7 +495,7 @@ static const char *add_opts(cmd_parms *cmd, void *d, int argc, char *const argv[
         else if (!strncasecmp(w, "Charset=", 8)) {
             d_cfg->charset = apr_pstrdup(cmd->pool, &w[8]);
         }
-        else if (!strncasecmp(w, "UseOldDateFormat", 16)) {
+        else if (!strcasecmp(w, "UseOldDateFormat")) {
             d_cfg->datetime_format = "%d-%b-%Y %H:%M";
         }
         else {