X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fmarker-desc.h;h=741cfa67b8b4ee4bd7373a10c373a2ad4ecfc6ce;hb=29ec67861cc68f03b93a5a4c5a7e2a002cf3170e;hp=7a19ab212608b99659a604f13d17abea37e9fc5b;hpb=256a5b3a59052aabbb4168c052764b5ba552ae99;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); }