diff options
author | df@pippilotta.erinye.com <> | 2007-12-21 09:44:08 +0100 |
---|---|---|
committer | df@pippilotta.erinye.com <> | 2007-12-21 09:44:08 +0100 |
commit | bea1bfd5c7068ab0b86cb8b1d887d45c387e3945 (patch) | |
tree | f6c0a15235cd3d4c407ee3e3e774c60b93f3a813 /client/mysql.cc | |
parent | 01b6c78fbe123673a0e5851ed0df78e4f7037b1c (diff) | |
parent | f25c6ffaee9c79e813e4a639eabbf7b8ba3a25fc (diff) | |
download | mariadb-git-bea1bfd5c7068ab0b86cb8b1d887d45c387e3945.tar.gz |
Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index d30b60732bc..8f118a06935 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1290,9 +1290,7 @@ static bool add_line(String &buffer,char *line,char *in_string, if (status.add_to_history && line[0] && not_in_history(line)) add_history(line); #endif -#ifdef USE_MB char *end_of_line=line+(uint) strlen(line); -#endif for (pos=out=line ; (inchar= (uchar) *pos) ; pos++) { @@ -1382,7 +1380,7 @@ static bool add_line(String &buffer,char *line,char *in_string, } } else if (!*ml_comment && !*in_string && - strlen(pos) >= 10 && + (end_of_line - pos) >= 10 && !my_strnncoll(charset_info, (uchar*) pos, 10, (const uchar*) "delimiter ", 10)) { |