From a52e55e90996aa1c50581bdcdac26e42da550841 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sat, 18 Jun 2016 23:14:22 +0200 Subject: [PATCH] Revert "Fix overlap of source and destination buffers in snprintf call" --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {