mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
sym_tab_add_id(): Fix bug where we generated a string one character too
long.
This commit is contained in:
@@ -220,7 +220,7 @@ sym_tab_add_id(
|
||||
node->resolved = FALSE;
|
||||
node->indirection = NULL;
|
||||
|
||||
node->name = mem_heap_strdupl(sym_tab->heap, (char*) name, len + 1);
|
||||
node->name = mem_heap_strdupl(sym_tab->heap, (char*) name, len);
|
||||
node->name_len = len;
|
||||
|
||||
UT_LIST_ADD_LAST(sym_list, sym_tab->sym_list, node);
|
||||
|
||||
Reference in New Issue
Block a user