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

Extract some of #3360 fixes to 10.5.x

That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes.
This commit is contained in:
ParadoxV5
2024-11-14 17:42:43 -07:00
committed by Daniel Black
parent b414eca98d
commit cf2d49ddcf
24 changed files with 102 additions and 101 deletions

View File

@ -1739,7 +1739,7 @@ static int switch_character_set_results(MYSQL *mysql, const char *cs_name)
query_length= my_snprintf(query_buffer,
sizeof (query_buffer),
"SET SESSION character_set_results = '%s'",
(const char *) cs_name);
cs_name);
return mysql_real_query(mysql, query_buffer, (ulong)query_length);
}