From: Frederic Marchal Date: Sun, 12 Jul 2015 19:11:26 +0000 (+0200) Subject: Fix a sort error when generating an email report X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e0ba32b05f85c0e6c17ab548d9495f3cbe8150d;p=thirdparty%2Fsarg.git Fix a sort error when generating an email report 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. --- diff --git a/email.c b/email.c index b244621..293601a 100644 --- 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);