diff --git a/command.c b/command.c index 689dc9c0c7..c4ed23915b 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); - strlcat(buf, ".last", sizeof(buf)); + snprintf(buf, sizeof(buf), "%s.last", buf); if (!content_rename_state(path, buf)) {