summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortnurnberg@white.intern.koehntopp.de <>2007-12-17 09:45:36 +0100
committertnurnberg@white.intern.koehntopp.de <>2007-12-17 09:45:36 +0100
commitf7aa719268212bdbc7d48e55dd51cf47dc4e034a (patch)
treee4b2848c7525b508ab99249f5aa768c7b5061077 /client
parentca5f50788ed89d3155828984bef7e3898aba47e0 (diff)
parente131a412815767bb8590c3831fd2797c10112ab8 (diff)
downloadmariadb-git-f7aa719268212bdbc7d48e55dd51cf47dc4e034a.tar.gz
Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into mysql.com:/misc/mysql/31752_/50-31752_
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 999a37e0f7e..d39a0554994 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -3085,7 +3085,10 @@ com_connect(String *buffer, char *line)
Two null bytes are needed in the end of buff to allow
get_arg to find end of string the second time it's called.
*/
- strmake(buff, line, sizeof(buff)-2);
+ tmp= strmake(buff, line, sizeof(buff)-2);
+#ifdef EXTRA_DEBUG
+ tmp[1]= 0;
+#endif
tmp= get_arg(buff, 0);
if (tmp && *tmp)
{