diff --git a/src/core/manager.c b/src/core/manager.c index 2dea89dc01..e9f73654f1 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -3112,11 +3112,8 @@ int manager_serialize( continue; t = manager_timestamp_to_string(q); - { - char field[strlen(t) + STRLEN("-timestamp") + 1]; - strcpy(stpcpy(field, t), "-timestamp"); - dual_timestamp_serialize(f, field, m->timestamps + q); - } + const char *field = strjoina(t, "-timestamp"); + dual_timestamp_serialize(f, field, m->timestamps + q); } if (!switching_root)