// Yeah, global variables!
-int nb_lines_max = 10000;
+int nb_lines_max = 1000;
char pattern_separator = ';';
int output_to_vt_buffer = 0;
int with_colors = 1;
int main(int argc, char **argv) {
char buffer[buffer_size];
- char *lines[nb_lines_max];
int color_fg_modeline, color_bg_modeline;
int color_fg_highlight, color_bg_highlight;
}
}
+ char **lines = new char *[nb_lines_max];
+
if(!input_filename[0]) {
cerr << "You must specify a input file with -f." << endl;
exit(1);
for(int l = 0; l < nb_lines; l++) {
delete[] lines[l];
}
+ delete[] lines;
exit(0);
}