trivial: fix printf integer size type mismatch
This commit is contained in:
parent
ad964e7f28
commit
c6d6d44326
|
|
@ -718,7 +718,7 @@ WriteEntitiesToString(void)
|
||||||
for (ep = map.rgEntities[iEntity].epairs; ep; ep = ep->next) {
|
for (ep = map.rgEntities[iEntity].epairs; ep; ep = ep->next) {
|
||||||
// Limit on Quake's strings of 128 bytes
|
// Limit on Quake's strings of 128 bytes
|
||||||
sprintf(szLine, "\"%.*s\" \"%.*s\"\n", MAX_KEY, ep->key,
|
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);
|
strcat(pCur, szLine);
|
||||||
pCur += strlen(szLine);
|
pCur += strlen(szLine);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue