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);
}
char pattern[BUFFER_SIZE];
int c, k, l, n;
int cursor_position;
- int error = 0, show_help = 0, enter = 0;
+ int error = 0, show_help = 0, done = 0;
int rest_are_files = 0;
int key;
int current_focus_line, displayed_focus_line;
key == '\033' || /* ^[ (escape) */
key == '\n' ||
key == KEY_ENTER) {
- enter = 1;
+ done = 1;
}
else {
motion,
nb_lines, labels, cursor_position, pattern);
- } while(!enter);
+ } while(!done);
echo();
endwin();
FILE *out = fopen(output_filename, "w");
if(out) {
if(t) {
- fprintf(out, t);
+ fprintf(out, "%s", t);
}
fprintf(out, "\n");
} else {