Mercurial > hg > dmlib
diff src/dmfile.c @ 2384:36edd316184a
Fix some format strings to use proper PRI*_SIZE_T where necessary.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 15:20:23 +0200 |
parents | 5046458d6c34 |
children | 9807ae37ad69 |
line wrap: on
line diff
--- a/src/dmfile.c Thu Jan 09 14:55:41 2020 +0200 +++ b/src/dmfile.c Thu Jan 09 15:20:23 2020 +0200 @@ -124,7 +124,8 @@ if ((dataBuf = dmMalloc(dataSize)) == NULL) { res = dmError(DMERR_MALLOC, - "Error allocating memory for data, %d bytes.\n", dataSize); + "Error allocating memory for data, %" DM_PRIu_SIZE_T " bytes.\n", + dataSize); goto error; } @@ -143,7 +144,7 @@ if ((dataBuf = dmRealloc(dataBuf, dataSize)) == NULL) { res = dmError(DMERR_MALLOC, - "Error reallocating memory for data, %d bytes.\n", + "Error reallocating memory for data, %" DM_PRIu_SIZE_T " bytes.\n", dataSize); goto error; }