mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 16:39:09 +00:00
(svn r26764) -Fix: Buffer overrun in SQCompiler::Error. (kalenz)
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
static SQChar temp[256];
|
||||
va_list vl;
|
||||
va_start(vl, s);
|
||||
scvsprintf(temp, s, vl);
|
||||
scvsnprintf(temp, sizeof(temp), s, vl);
|
||||
va_end(vl);
|
||||
throw temp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user