]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - getconf.c
Don't use strcmp to check strings one or zero characters long
[thirdparty/sarg.git] / getconf.c
index b4cfba5a53ecbd4ef06f4832ad6f6f8d1c01eb5a..be25115f167e38f9558585016319a1d604d609ae 100644 (file)
--- a/getconf.c
+++ b/getconf.c
@@ -471,8 +471,7 @@ static void parmtest(char *buf)
                        debuga(_("Maybe you have a broken record or garbage in \"date_format\" parameter\n"));
                        exit(EXIT_FAILURE);
                }
-               strncpy(DateFormat,gwarea.current,1);
-               fixnone(DateFormat);
+               DateFormat=gwarea.current[0];
                return;
        }