]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix a sort error when generating an email report
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 12 Jul 2015 19:11:26 +0000 (21:11 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 12 Jul 2015 19:11:26 +0000 (21:11 +0200)
A line had been mistakenly deleted from the source code. Generating an
email report was not possible any more.

Thanks to Yakushev Evgeniy for reporting this bug.

email.c

diff --git a/email.c b/email.c
index b244621009f8d93b06603792f2c5f72f06e8a3a0..293601a5e02fcf2a36ded1a4602a5a41198fd1d8 100644 (file)
--- a/email.c
+++ b/email.c
@@ -132,6 +132,7 @@ int geramail(const char *dirname, int debug, const char *email, const char *Temp
        }
 #endif
 
+       snprintf(top1,sizeof(top1),"%s/email.int_log",dirname);
        if (snprintf(csort,sizeof(csort),"sort -n -T \"%s\" -t \"\t\" -r -k 2,2 -o \"%s\" \"%s\"", TempDir, top1, top2)>=sizeof(csort)) {
                debuga(__FILE__,__LINE__,_("Sort command too long when sorting file \"%s\" to \"%s\"\n"),top2,top1);
                exit(EXIT_FAILURE);