From: Francois Fleuret Date: Tue, 1 Feb 2011 20:30:39 +0000 (+0100) Subject: Fixed a % printing bug. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=a00231e4ace972a4165e6774004d896b971b97c4;p=finddup.git Fixed a % printing bug. --- diff --git a/finddup.c b/finddup.c index bd77361..7dc2aba 100644 --- a/finddup.c +++ b/finddup.c @@ -457,7 +457,7 @@ void print_progress(struct progress_state *state) { } /* We need four % because of the fprintf that follows */ - sprintf(s, " [%3d%%%%]\r", + sprintf(s, " [%3d%%]\r", (100 * state->value) / normalizer); fprintf(stderr, "%s", buffer);