mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02: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:
parent
4656060f11
commit
07315d3603
27 changed files with 102 additions and 121 deletions
|
|
@ -3304,7 +3304,7 @@ static LSN parse_checkpoint_record(LSN lsn)
|
|||
first_log_write_lsn= lsn_korr(ptr);
|
||||
ptr+= LSN_STORE_SIZE;
|
||||
name_len= strlen((char *)ptr) + 1;
|
||||
strmake(name, (char *)ptr, sizeof(name)-1);
|
||||
strmake_buf(name, (char *)ptr);
|
||||
ptr+= name_len;
|
||||
if (new_table(sid, name, first_log_write_lsn))
|
||||
return LSN_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue