trivial: fix printf integer size type mismatch

This commit is contained in:
Tyrann 2012-01-06 21:35:55 +10:30
parent ad964e7f28
commit c6d6d44326
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}