diff --git a/command.c b/command.c index c4ed23915b..689dc9c0c7 100644 --- a/command.c +++ b/command.c @@ -1586,7 +1586,7 @@ static void command_event_save_state(const char *path, strlcpy(buf, path, sizeof(buf)); snprintf(buf, sizeof(buf), "%s", path); path_remove_extension(buf); - snprintf(buf, sizeof(buf), "%s.last", buf); + strlcat(buf, ".last", sizeof(buf)); if (!content_rename_state(path, buf)) {