summaryrefslogtreecommitdiff
path: root/libmysql/errmsg.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-01-28 13:20:03 +0100
committerunknown <serg@serg.mysql.com>2001-01-28 13:20:03 +0100
commit7a70b21271ed43a1f5a9c95af574a5203d1d2079 (patch)
tree1452c705e8f9b2989bf7c432d3010a7d312a7043 /libmysql/errmsg.c
parentdb47a46bedaceb51c591d615b9ebaeabe4c2528f (diff)
downloadmariadb-git-7a70b21271ed43a1f5a9c95af574a5203d1d2079.tar.gz
errmsg.c buffer overflow in libmysqlclient fixed
libmysql/errmsg.c: buffer overflow in libmysqlclient fixed
Diffstat (limited to 'libmysql/errmsg.c')
-rw-r--r--libmysql/errmsg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmysql/errmsg.c b/libmysql/errmsg.c
index 194542afd7f..00c8910a573 100644
--- a/libmysql/errmsg.c
+++ b/libmysql/errmsg.c
@@ -36,7 +36,7 @@ const char *client_errors[]=
"MySQL client got out of memory",
"Wrong host info",
"Localhost via UNIX socket",
- "%s via TCP/IP",
+ "%-.64s via TCP/IP",
"Error in server handshake",
"Lost connection to MySQL server during query",
"Commands out of sync; You can't run this command now",
@@ -62,11 +62,11 @@ const char *client_errors[]=
"MySQL client run out of memory",
"Wrong host info",
"Localhost via UNIX socket",
- "%s via TCP/IP",
+ "%-.64s via TCP/IP",
"Error in server handshake",
"Lost connection to MySQL server during query",
"Commands out of sync; You can't run this command now",
- "%s via named pipe",
+ "%-.64s via named pipe",
"Can't wait for named pipe to host: %-.64s pipe: %-.32s (%lu)",
"Can't open named pipe to host: %-.64s pipe: %-.32s (%lu)",
"Can't set state of named pipe to host: %-.64s pipe: %-.32s (%lu)",