comparison tools/gfxconv.c @ 1526:e0cd0fc8c753

Oops. Actually use the generated filename for writing the output files in here.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 23:44:53 +0300
parents 9602f7ea1e7e
children 74febc66d90d
comparison
equal deleted inserted replaced
1525:9602f7ea1e7e 1526:e0cd0fc8c753
1538 { 1538 {
1539 dmErrorMsg("Could not allocate memory for filename template?\n"); 1539 dmErrorMsg("Could not allocate memory for filename template?\n");
1540 goto error; 1540 goto error;
1541 } 1541 }
1542 1542
1543 ret = dmWriteImage(optOutFilename, outImage, &optSpec, optOutSubFormat, TRUE); 1543 ret = dmWriteImage(outFilename, outImage, &optSpec, optOutSubFormat, TRUE);
1544 if (ret != DMERR_OK) 1544 if (ret != DMERR_OK)
1545 { 1545 {
1546 dmErrorMsg("Error writing output image '%s': %s.\n", 1546 dmErrorMsg("Error writing output image '%s': %s.\n",
1547 outFilename, dmErrorStr(ret)); 1547 outFilename, dmErrorStr(ret));
1548 } 1548 }