diff options
| author | 2023-07-09 22:33:55 +0200 | |
|---|---|---|
| committer | 2023-07-09 22:33:55 +0200 | |
| commit | 53807bdddd7078b335862b8be49fe56d03a59417 (patch) | |
| tree | 8083bc21b17dc9f8df8c3a20bbdf2e8e76ee729c /CODE_OF_CONDUCT | |
| parent | 8dae03b00b8a24b690214a79af057b8d0de83cd0 (diff) | |
| download | opendeco-53807bdddd7078b335862b8be49fe56d03a59417.tar.gz | |
Change count+malloc to realloc in parse_gasses
Instead of counting the amount of ',' delimiters in the gasses string
and then using malloc, realloc on every now token. This prevents a bug
when there are consecutive ',' delimiters (in which case nof_gasses and
the amount of tokens returned by strtok do not match).
Diffstat (limited to 'CODE_OF_CONDUCT')
0 files changed, 0 insertions, 0 deletions