summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-05-20 13:34:51 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2020-05-24 21:27:08 +0200
commitcf52dd174ecf0e6055f4443be9c1fea8bc37b65e (patch)
tree63eba68da735d7d8280e624ae1be9a3d3f78588b /extra
parentd8e2fa0c49d506bde037fe448dc9840e8e14cf92 (diff)
downloadmariadb-git-cf52dd174ecf0e6055f4443be9c1fea8bc37b65e.tar.gz
MDEV-22545: my_vsnprintf behaves not as in C standard
Added parameter %T for string which should be visibly truncated.
Diffstat (limited to 'extra')
-rw-r--r--extra/comp_err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c
index 39b2915bc00..9408d925a2d 100644
--- a/extra/comp_err.c
+++ b/extra/comp_err.c
@@ -787,6 +787,7 @@ static ha_checksum checksum_format_specifier(const char* msg)
case 'x':
case 's':
case 'M':
+ case 'T':
chksum= my_checksum(chksum, (uchar*) start, (uint) (p + 1 - start));
start= 0; /* Not in format specifier anymore */
break;