diff --git a/src/main.c b/src/main.c index 75fd301..811f549 100644 --- a/src/main.c +++ b/src/main.c @@ -318,7 +318,7 @@ struct capture_completed_args { static bool capture_completed(struct capture_completed_args *args) { - snprintf(last_path, sizeof(last_path), args->fname); + snprintf(last_path, sizeof(last_path), "%s", args->fname); gtk_image_set_from_paintable(GTK_IMAGE(thumb_last), GDK_PAINTABLE(args->thumb));