From 6d6e2232ead8bd13b7e302f60793809f0e39ac0d Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 2 Feb 2009 13:46:26 +0000 Subject: (svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel --- src/string_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string_func.h') diff --git a/src/string_func.h b/src/string_func.h index a8bf897a8..bf7159751 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -95,7 +95,7 @@ char *CDECL str_fmt(const char *str, ...); /** Scans the string for valid characters and if it finds invalid ones, * replaces them with a question mark '?' */ -void str_validate(char *str, bool allow_newlines = false); +void str_validate(char *str, bool allow_newlines = false, bool ignore = false); /** Scans the string for colour codes and strips them */ void str_strip_colours(char *str); -- cgit v1.2.3-54-g00ecf