summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-06-20 18:54:45 +0200
committerjimw@mysql.com <>2005-06-20 18:54:45 +0200
commit5381e186731e75958a6fa80d9f8f46c19702db88 (patch)
tree16c3f054fc71eea8bb538799331c4d49f04ac00f /client
parent9b3d0b85a3c372ac7ac8be0cbec859cba8f13a57 (diff)
downloadmariadb-git-5381e186731e75958a6fa80d9f8f46c19702db88.tar.gz
Fix handling of command-line on Windows, missed as part of earlier
commit. (Bug #10840)
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index b9b9b938da0..5454c76e720 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -989,7 +989,8 @@ static int read_lines(bool execute_commands)
a nil, it still needs the space in the linebuffer for it. This is,
naturally, undocumented.
*/
- } while (linebuffer[0] <= linebuffer[1] + 1);
+ } while ((unsigned char)linebuffer[0] <=
+ (unsigned char)linebuffer[1] + 1);
line= buffer.c_ptr();
#endif /* __NETWARE__ */
#else