From 7f2f6da754571771475558233f5a47813ec278dd Mon Sep 17 00:00:00 2001 From: Jeremy Attali Date: Sun, 5 Jan 2020 23:15:48 -0500 Subject: [PATCH] fix(application): suffix saved file with png --- src/application.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application.c b/src/application.c index b5e3c86..a15c7d1 100644 --- a/src/application.c +++ b/src/application.c @@ -213,7 +213,7 @@ static void action_save_area_to_file(struct swappy_state *state) { c_time_string = ctime(¤t_time); c_time_string[strlen(c_time_string) - 1] = '\0'; char path[MAX_PATH]; - snprintf(path, MAX_PATH, "%s/%s %s", state->storage_path, "Swappshot", + snprintf(path, MAX_PATH, "%s/%s %s.png", state->storage_path, "Swappshot", c_time_string); gdk_pixbuf_savev(pixbuf, path, "png", NULL, NULL, &error);