fix invalid array access
[ust.git] / libust / marker.c
index 4dc7de1c8b7a13d538727abdedfcc247510728f6..19467d19bba9272bc3af2d1e37507d25f2505685 100644 (file)
@@ -439,7 +439,7 @@ static struct marker_entry *add_marker(const char *channel, const char *name,
        e->name = &e->channel[channel_len];
        memcpy(e->name, name, name_len);
        if (format) {
-               e->format = &e->name[channel_len + name_len];
+               e->format = &e->name[name_len];
                memcpy(e->format, format, format_len);
                if (strcmp(e->format, MARK_NOARGS) == 0)
                        e->call = marker_probe_cb_noarg;
This page took 0.023097 seconds and 4 git commands to generate.