diff --git a/tools/png2fimg.c b/tools/png2fimg.c index c96c6056..c3f42178 100644 --- a/tools/png2fimg.c +++ b/tools/png2fimg.c @@ -19,7 +19,7 @@ int foo; if (3 != argc) { fimg_print_version(1); - fprintf(stderr, "usage:\n\t%s foo.fimg bar.png\n", argv[0]); + fprintf(stderr, "usage:\n\t%s foo.png bar.png\n", argv[0]); exit(1); } @@ -33,8 +33,8 @@ if (foo) { fimg_describe(&fimg, "oups"); -foo = fimg_save_as_pnm(&fimg, "t.pnm", 0); -fprintf(stderr, "save as pnm -> %d\n", foo); +foo = fimg_dump_to_file(&fimg, argv[2], 0); +fprintf(stderr, "save as fimg -> %d\n", foo); return 0; }