From 86ebc116da42168a1b57204c98747c6cccebdc68 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 22 Nov 2015 15:38:01 +0100 Subject: [PATCH] fix gcc format security error. Signed-off-by: Hauke Mehrtens --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 4c8dda9..c6d1b90 100644 --- a/block.c +++ b/block.c @@ -1311,7 +1311,7 @@ static int main_swapon(int argc, char **argv) return -1; } while (getline(&lineptr, &s, fp) > 0) - printf(lineptr); + printf("%s", lineptr); if (lineptr) free(lineptr); fclose(fp); -- 2.25.1