X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=selector.c;h=daf2c26dc478c79d83533784837f52cbf2d06817;hp=0a8cf2423ccb5e5704e8fa8003296116483b8125;hb=87d0df2343695853a67e240c58452603f0a5b479;hpb=d13b8a7ea8998ff1f9f93d80993bb945e76be583 diff --git a/selector.c b/selector.c index 0a8cf24..daf2c26 100644 --- 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 {