Added the "%s" format when simply writing a string.
authorFrancois Fleuret <francois@fleuret.org>
Thu, 27 Jan 2011 21:28:57 +0000 (22:28 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Thu, 27 Jan 2011 21:28:57 +0000 (22:28 +0100)
finddup.c

index c0a51a1..bd77361 100644 (file)
--- 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);
       }
     }
   }