mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
This commit is contained in:
@@ -2536,7 +2536,7 @@ select_export::prepare(List<Item> &list, SELECT_LEX_UNIT *u)
|
||||
bool string_results= FALSE, non_string_results= FALSE;
|
||||
unit= u;
|
||||
if ((uint) strlen(exchange->file_name) + NAME_LEN >= FN_REFLEN)
|
||||
strmake(path,exchange->file_name,FN_REFLEN-1);
|
||||
strmake_buf(path,exchange->file_name);
|
||||
|
||||
write_cs= exchange->cs ? exchange->cs : &my_charset_bin;
|
||||
|
||||
|
Reference in New Issue
Block a user