1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

enforce no trailing \n in Diagnostic_area messages

that is in my_error(), push_warning(), etc
This commit is contained in:
Sergei Golubchik
2024-12-28 20:15:43 +01:00
parent 0031f4a74f
commit 9508a44c37
16 changed files with 123 additions and 174 deletions

View File

@ -4114,7 +4114,7 @@ bool mysql_show_binlog_events(THD* thd)
if (lex_mi->pos > binlog_size)
{
snprintf(errmsg_buf, sizeof(errmsg_buf), "Invalid pos specified. Requested from pos:%llu is "
"greater than actual file size:%lu\n", lex_mi->pos,
"greater than actual file size:%lu", lex_mi->pos,
(ulong)s.st_size);
errmsg= errmsg_buf;
goto err;