diff options
Diffstat (limited to 'src/tools/pngcmp.c')
-rw-r--r-- | src/tools/pngcmp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/pngcmp.c b/src/tools/pngcmp.c index 31753a49be1..df35da8f685 100644 --- a/src/tools/pngcmp.c +++ b/src/tools/pngcmp.c @@ -83,7 +83,7 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c filerr = core_fopen(imgfile1, OPEN_FLAG_READ, &file); if (filerr != FILERR_NONE) { - printf("Could not open %s (%d)\n", imgfile1.cstr(), filerr); + printf("Could not open %s (%d)\n", imgfile1.c_str(), filerr); goto error; } @@ -92,7 +92,7 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c core_fclose(file); if (pngerr != PNGERR_NONE) { - printf("Could not read %s (%d)\n", imgfile1.cstr(), pngerr); + printf("Could not read %s (%d)\n", imgfile1.c_str(), pngerr); goto error; } @@ -100,7 +100,7 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c filerr = core_fopen(imgfile2, OPEN_FLAG_READ, &file); if (filerr != FILERR_NONE) { - printf("Could not open %s (%d)\n", imgfile2.cstr(), filerr); + printf("Could not open %s (%d)\n", imgfile2.c_str(), filerr); goto error; } @@ -109,7 +109,7 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c core_fclose(file); if (pngerr != PNGERR_NONE) { - printf("Could not read %s (%d)\n", imgfile2.cstr(), pngerr); + printf("Could not read %s (%d)\n", imgfile2.c_str(), pngerr); goto error; } @@ -173,14 +173,14 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c filerr = core_fopen(outfilename, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &file); if (filerr != FILERR_NONE) { - printf("Could not open %s (%d)\n", outfilename.cstr(), filerr); + printf("Could not open %s (%d)\n", outfilename.c_str(), filerr); goto error; } pngerr = png_write_bitmap(file, NULL, finalbitmap, 0, NULL); core_fclose(file); if (pngerr != PNGERR_NONE) { - printf("Could not write %s (%d)\n", outfilename.cstr(), pngerr); + printf("Could not write %s (%d)\n", outfilename.c_str(), pngerr); goto error; } } |