mirror of
https://github.com/jmcnamara/libxlsxwriter
synced 2025-03-28 21:13:14 +00:00
Fix for valgrind warning.
This commit is contained in:
parent
91b1cfa5b2
commit
335548e77b
@ -2696,7 +2696,7 @@ lxw_worksheet_prepare_vml_objects(lxw_worksheet *self,
|
||||
};
|
||||
|
||||
/* If this allocation fails it will be dealt with in packager.c. */
|
||||
vml_data_id_str = calloc(1, data_str_len);
|
||||
vml_data_id_str = calloc(1, data_str_len + 2);
|
||||
GOTO_LABEL_ON_MEM_ERROR(vml_data_id_str, mem_error);
|
||||
|
||||
/* Create the CSV list in the allocated space. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user