projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13b8a7
)
Added the "%s" format when simply writing a string.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 27 Jan 2011 21:28:16 +0000
(22:28 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 27 Jan 2011 21:28:16 +0000
(22:28 +0100)
selector.c
patch
|
blob
|
history
diff --git
a/selector.c
b/selector.c
index
0a8cf24
..
daf2c26
100644
(file)
--- a/
selector.c
+++ b/
selector.c
@@
-796,7
+796,7
@@
void read_file(struct hash_table_t *hash_table,
raw_line[BUFFER_SIZE - 1] = '\0';
fprintf(stderr, "selector: Line too long (max is %d characters):\n",
BUFFER_SIZE);
- fprintf(stderr, raw_line);
+ fprintf(stderr,
"%s",
raw_line);
fprintf(stderr, "\n");
exit(EXIT_FAILURE);
}
@@
-1251,7
+1251,7
@@
int main(int argc, char **argv) {
FILE *out = fopen(output_filename, "w");
if(out) {
if(t) {
- fprintf(out, t);
+ fprintf(out,
"%s",
t);
}
fprintf(out, "\n");
} else {