stats.c: port to new infrastructure
[lttv.git] / ltt / branches / poly / ltt / facility.c
index 65c86893f103b6dd5896daf5381759324f004df0..61e7d09b5b0c01a4d9dc232be745d8dd58146eaa 100644 (file)
@@ -234,8 +234,8 @@ void append_ll (char **fmt, char **fmt_type){
   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;
 
@@ -281,7 +281,7 @@ int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname)
   gboolean generated = FALSE;
 
   in.buffer = &(buffer[0]);
-  in.lineno = 0;
+  in.lineno = 1;
   in.error = error_callback;
   in.name = pathname;
   in.unget = 0;
This page took 0.0235109999999999 seconds and 4 git commands to generate.