diff options
author | frosch <frosch@openttd.org> | 2014-08-31 10:20:30 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-08-31 10:20:30 +0000 |
commit | 43e82ded9a233d6380346087d99dc45eb115d813 (patch) | |
tree | 8b28d144e5c794f650bf4a15f1e34385a97e20f5 | |
parent | 5b707e9db83821761b69a00254267bca7951ad70 (diff) | |
download | openttd-43e82ded9a233d6380346087d99dc45eb115d813.tar.xz |
(svn r26764) -Fix: Buffer overrun in SQCompiler::Error. (kalenz)
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqcompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp index b9eace1c6..35fcc9e49 100644 --- a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp +++ b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp @@ -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; } |