# HG changeset patch # User Matti Hamalainen # Date 1424724133 -7200 # Node ID bc6c338295e556ec01d8e70198c4ae75c0d742b8 # Parent e591ce9b3526c342419765e70893c4b2fab41cd5 Rename a variable. diff -r e591ce9b3526 -r bc6c338295e5 tools/gfxconv.c --- a/tools/gfxconv.c Mon Feb 23 22:24:17 2015 +0200 +++ b/tools/gfxconv.c Mon Feb 23 22:42:13 2015 +0200 @@ -1250,20 +1250,20 @@ int outBlockW, outBlockH, bx, by; FILE *outFile = NULL; Uint8 *buf = NULL; - size_t bufSize; + size_t outBufSize; char *outType; switch (outFormat) { case FFMT_CHAR: - bufSize = C64_CHR_SIZE; + outBufSize = C64_CHR_SIZE; outBlockW = image->width / C64_CHR_WIDTH_PX; outBlockH = image->height / C64_CHR_HEIGHT; outType = "char"; break; case FFMT_SPRITE: - bufSize = C64_SPR_SIZE; + outBufSize = C64_SPR_SIZE; outBlockW = image->width / C64_SPR_WIDTH_PX; outBlockH = image->height / C64_SPR_HEIGHT; outType = "sprite"; @@ -1289,10 +1289,10 @@ goto error; } - if ((buf = dmMalloc(bufSize)) == NULL) + if ((buf = dmMalloc(outBufSize)) == NULL) { dmError("Could not allocate %d bytes for conversion buffer.\n", - bufSize); + outBufSize); goto error; } @@ -1318,7 +1318,7 @@ goto error; } - if (!dm_fwrite_str(outFile, buf, bufSize)) + if (!dm_fwrite_str(outFile, buf, outBufSize)) { int err = dmGetErrno(); dmError("Error writing data block %d,%d to '%s', %d: %s\n",