(svn r19569) -Fix: possible buffer underflow in newgrf string code

This commit is contained in:
yexo
2010-04-06 21:16:36 +00:00
parent 8da54d59ea
commit faf5e19aae
3 changed files with 5 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ void StopTextRefStackUsage();
void SwitchToNormalRefStack();
void SwitchToErrorRefStack();
void RewindTextRefStack();
uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 *argv);
uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const char **str, int64 *argv);
StringID TTDPStringIDToOTTDStringIDMapping(StringID string);