projects
/
oweals
/
fstools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f4571b
)
fix gcc format security error.
author
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 22 Nov 2015 14:38:01 +0000
(15:38 +0100)
committer
John Crispin
<blogic@openwrt.org>
Sun, 22 Nov 2015 15:38:06 +0000
(16:38 +0100)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index 4c8dda92fefac06d2a515564bb8ed5c4f67536b3..c6d1b9049145a453205372b93016572b4c332d4a 100644
(file)
--- 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);