int num;
- //new_fmt = malloc(strlen(*fmt)*sizeof(char)+2);//the +2 corresponds the the "ll";
- new_fmt = g_new(gchar, strlen(*fmt)+2);
+ //the +2 corresponds the the "ll"; the +1 is the \0
+ new_fmt = g_new(gchar, strlen(*fmt)+2+1);
num = *fmt_type - *fmt;
gboolean generated = FALSE;
in.buffer = &(buffer[0]);
- in.lineno = 0;
+ in.lineno = 1;
in.error = error_callback;
in.name = pathname;
in.unget = 0;