From c6d6d44326dadc344830a92070763ae819d5a08e Mon Sep 17 00:00:00 2001 From: Tyrann Date: Fri, 6 Jan 2012 21:35:55 +1030 Subject: [PATCH] trivial: fix printf integer size type mismatch --- qbsp/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/map.c b/qbsp/map.c index 4a0c694e..47b9ac78 100644 --- a/qbsp/map.c +++ b/qbsp/map.c @@ -718,7 +718,7 @@ WriteEntitiesToString(void) for (ep = map.rgEntities[iEntity].epairs; ep; ep = ep->next) { // Limit on Quake's strings of 128 bytes sprintf(szLine, "\"%.*s\" \"%.*s\"\n", MAX_KEY, ep->key, - 122 - strlen(ep->key), ep->value); + 122 - (int)strlen(ep->key), ep->value); strcat(pCur, szLine); pCur += strlen(szLine); }