diff options
author | rubidium <rubidium@openttd.org> | 2013-07-04 16:36:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-07-04 16:36:47 +0000 |
commit | 4c443bce5cf042265099d5239d8958d2e61a6793 (patch) | |
tree | 910e1724668d86722a74d6344279249642b2005b /src/string_func.h | |
parent | 76566fde5b92828be695afb14a8307b61d3d9049 (diff) | |
download | openttd-4c443bce5cf042265099d5239d8958d2e61a6793.tar.xz |
(svn r25555) -Fix [FS#5632]: [Script] Texts from scripts were not validated before they were shown, causing an assertion to trigger
Diffstat (limited to 'src/string_func.h')
-rw-r--r-- | src/string_func.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string_func.h b/src/string_func.h index 32d3d7e6a..25608889d 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -40,6 +40,8 @@ int CDECL seprintf(char *str, const char *last, const char *format, ...) WARN_FO char *CDECL str_fmt(const char *str, ...) WARN_FORMAT(1, 2); void str_validate(char *str, const char *last, StringValidationSettings settings = SVS_REPLACE_WITH_QUESTION_MARK); +void ValidateString(const char *str); + void str_fix_scc_encoded(char *str, const char *last); void str_strip_colours(char *str); bool strtolower(char *str); |