summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-12-10 09:19:03 +0100
committerSergei Golubchik <serg@mariadb.org>2020-12-10 15:25:14 +0100
commit79fd338e6ca6df8d4c8cf3f326fc6ae0a256bdd2 (patch)
treec7c59bdb9b6d201a97c40c67b81633a6c6cd8b8f
parent493c7d34cb2c5c0bc8c495d1dd7b2394c62036ad (diff)
downloadmariadb-git-79fd338e6ca6df8d4c8cf3f326fc6ae0a256bdd2.tar.gz
MDEV-23942 mariadb-10.5.6/storage/connect/plugutil.cpp:380: bad width ?
cppcheck warnings
-rw-r--r--storage/connect/plugutil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/connect/plugutil.cpp b/storage/connect/plugutil.cpp
index 0ab594f5533..baeac32066b 100644
--- a/storage/connect/plugutil.cpp
+++ b/storage/connect/plugutil.cpp
@@ -378,9 +378,9 @@ char *PlugReadMessage(PGLOBAL g, int mid, char *m)
if (atoi(buff) == mid)
break;
- if (sscanf(buff, " %*d %s \"%[^\"]", msgid, stmsg) < 2) {
+ if (sscanf(buff, " %*d %.31s \"%.255[^\"]", msgid, stmsg) < 2) {
// Old message file
- if (!sscanf(buff, " %*d \"%[^\"]", stmsg)) {
+ if (!sscanf(buff, " %*d \"%.255[^\"]", stmsg)) {
sprintf(stmsg, "Bad message file for %d %s", mid, SVP(m));
goto fin;
} else