fix marker-desc
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 11 Oct 2007 16:22:27 +0000 (16:22 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 11 Oct 2007 16:22:27 +0000 (16:22 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2654 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/marker-desc.h

index 7a19ab212608b99659a604f13d17abea37e9fc5b..741cfa67b8b4ee4bd7373a10c373a2ad4ecfc6ce 100644 (file)
@@ -8,6 +8,7 @@
  * License: LGPL.
  */
 
+#include <stdio.h>
 #include <glib.h>
 #include <ltt/marker-field.h>
 
@@ -16,7 +17,7 @@ static inline GQuark ltt_enum_string_get(struct marker_field *f,
   gulong value)
 {
   char tmp[1024] = "ENUM-";
-  sprintf(tmp[sizeof("ENUM-") - 1], "%lu", value);
+  sprintf(&tmp[sizeof("ENUM-") - 1], "%lu", value);
   return g_quark_from_string(tmp);
 }
 
This page took 0.037433 seconds and 4 git commands to generate.