From: Frederic Marchal Date: Sat, 25 Apr 2015 19:30:05 +0000 (+0200) Subject: Fix the file name reported in a write error message X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc1804f176e446b98fd5199c84bd955501fe826d;p=thirdparty%2Fsarg.git Fix the file name reported in a write error message An error message when closing a file was not reporting the right file name. --- diff --git a/useragent.c b/useragent.c index 8ea1140..be40754 100644 --- a/useragent.c +++ b/useragent.c @@ -280,7 +280,7 @@ void useragent(void) agentot2+=agentot; if (fclose(fp_ou)==EOF) { - debuga(_("Write error in \"%s\": %s\n"),tmp3,strerror(errno)); + debuga(_("Write error in \"%s\": %s\n"),tmp2,strerror(errno)); exit(EXIT_FAILURE); } if (fclose(fp_in)==EOF) {