summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9fb84e1..d16197a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,7 +30,7 @@ main(int argc, char **argv)
struct text *text;
struct image *image;
- if (argc != 3) {
+ if (argc != 4) {
return 1;
}
@@ -38,7 +38,7 @@ main(int argc, char **argv)
text = text_new(argv[2]);
text_set_width(text, 80);
text_set_height(text, 25);
- image = image_new("test.png");
+ image = image_new(argv[3]);
image_render(image, text, font);
text_destroy(&text);
image_destroy(&image);