(svn r23590) -Codechange: make the string validation settings better expandable

This commit is contained in:
rubidium
2011-12-18 18:37:54 +00:00
parent 4e689cc5cd
commit 8e4b6c3055
8 changed files with 24 additions and 14 deletions

View File

@@ -1099,7 +1099,7 @@ struct QueryStringWindow : public QueryStringBaseWindow
QueryStringBaseWindow(max_bytes, max_chars)
{
GetString(this->edit_str_buf, str, &this->edit_str_buf[max_bytes - 1]);
str_validate(this->edit_str_buf, &this->edit_str_buf[max_bytes - 1], false, true);
str_validate(this->edit_str_buf, &this->edit_str_buf[max_bytes - 1], SVS_NONE);
/* Make sure the name isn't too long for the text buffer in the number of
* characters (not bytes). max_chars also counts the '\0' characters. */