From 1d298302d4f35ed44ab8859e98b506d948b1a0da Mon Sep 17 00:00:00 2001 From: Uri Blumenthal Date: Mon, 26 Jun 2017 12:35:27 -0400 Subject: [PATCH] Fix error in printf() invocation --- gost12sum.c | 2 +- gostsum12.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gost12sum.c b/gost12sum.c index 0fdaf4f..d6a50ed 100644 --- a/gost12sum.c +++ b/gost12sum.c @@ -260,7 +260,7 @@ int get_line(FILE *f, char *hash, char *filename, int verbose) return 1; nextline: if (verbose) - printf(filename); + printf("%s\n", filename); } return 0; } diff --git a/gostsum12.c b/gostsum12.c index 9eab476..580a8fc 100644 --- a/gostsum12.c +++ b/gostsum12.c @@ -251,7 +251,7 @@ int get_line(FILE *f, char *hash, char *filename, int verbose) return 1; nextline: if (verbose) - printf(filename); + printf("%s\n", filename); } return 0; } -- 2.39.5