]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - topuser.c
Use a global constant instead of the "index.html" file name in the code
[thirdparty/sarg.git] / topuser.c
index 01015b5c1e54abae4321baf4c28256e962b6df65..83b3ef765ecc5db434dc0f860c7c2e84664ea51b 100644 (file)
--- a/topuser.c
+++ b/topuser.c
@@ -212,7 +212,7 @@ void topuser(void)
                exit(EXIT_FAILURE);
        }
 
-       snprintf(top3,sizeof(top3),"%s/index.html",outdirname);
+       snprintf(top3,sizeof(top3),"%s/"INDEX_HTML_FILE,outdirname);
        if((fp_top3=fopen(top3,"w"))==NULL) {
                debuga(_("(topuser) Cannot open file %s: %s\n"),top3,strerror(errno));
                exit(EXIT_FAILURE);