From: Hauke Mehrtens Date: Sun, 22 Nov 2015 14:38:01 +0000 (+0100) Subject: fix gcc format security error. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=86ebc116da42168a1b57204c98747c6cccebdc68;p=project%2Ffstools.git fix gcc format security error. Signed-off-by: Hauke Mehrtens --- 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);