X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fmarker-desc.h;h=741cfa67b8b4ee4bd7373a10c373a2ad4ecfc6ce;hb=f2a74ed3fec31023600e9f24b318d9b9cc2c9a12;hp=7a19ab212608b99659a604f13d17abea37e9fc5b;hpb=1dad7cdb11cc16133405640aa9a8a963a91cca2a;p=lttv.git 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); }