From: compudj Date: Thu, 11 Oct 2007 16:22:27 +0000 (+0000) Subject: fix marker-desc X-Git-Tag: v0.12.20~835 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=29ec67861cc68f03b93a5a4c5a7e2a002cf3170e;p=lttv.git fix marker-desc git-svn-id: http://ltt.polymtl.ca/svn@2654 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/marker-desc.h b/ltt/branches/poly/ltt/marker-desc.h index 7a19ab21..741cfa67 100644 --- a/ltt/branches/poly/ltt/marker-desc.h +++ b/ltt/branches/poly/ltt/marker-desc.h @@ -8,6 +8,7 @@ * License: LGPL. */ +#include #include #include @@ -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); }