diff options
author | rubidium <rubidium@openttd.org> | 2009-03-06 01:23:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-06 01:23:25 +0000 |
commit | 34bd9ee636b43d1851d27f92884769f8f25717be (patch) | |
tree | 8972c2c7b9b1ab7c2b41b46cd9a44f1bb0fbd9bd /src/video | |
parent | 9c6d6c0d0edba265c73c04901d0f2155173407b8 (diff) | |
download | openttd-34bd9ee636b43d1851d27f92884769f8f25717be.tar.xz |
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/dedicated_v.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index 2a997d9f9..456ee7b84 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -235,7 +235,7 @@ static void DedicatedHandleKeyInput() break; } } - str_validate(input_line); + str_validate(input_line, lastof(input_line)); IConsoleCmdExec(input_line); // execute command } |