From: Francois Fleuret Date: Thu, 27 Jan 2011 21:28:57 +0000 (+0100) Subject: Added the "%s" format when simply writing a string. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=03d94f9323e6bcf0206106036dcda7ed9eac5b0c;p=finddup.git Added the "%s" format when simply writing a string. --- diff --git a/finddup.c b/finddup.c index c0a51a1..bd77361 100644 --- a/finddup.c +++ b/finddup.c @@ -460,7 +460,7 @@ void print_progress(struct progress_state *state) { sprintf(s, " [%3d%%%%]\r", (100 * state->value) / normalizer); - fprintf(stderr, buffer); + fprintf(stderr, "%s", buffer); } } }