diff options
author | unknown <jimw@mysql.com> | 2005-06-20 18:54:45 +0200 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-06-20 18:54:45 +0200 |
commit | 7b24dad470ad5cd3526ad081672adc25f1e1a672 (patch) | |
tree | 16c3f054fc71eea8bb538799331c4d49f04ac00f /client | |
parent | 6de6d3ad5cc34a53735b0b12ca80846d50537f62 (diff) | |
download | mariadb-git-7b24dad470ad5cd3526ad081672adc25f1e1a672.tar.gz |
Fix handling of command-line on Windows, missed as part of earlier
commit. (Bug #10840)
client/mysql.cc:
Add cast of unsigned value stored in signed char
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 3 |
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 |