mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-16 18:20:45 +03:00
fix(application): suffix saved file with png
This commit is contained in:
parent
f9d70fc0e2
commit
7f2f6da754
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user