diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-14 15:35:55 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-14 15:35:55 -0400 |
commit | 914ddc68511be45c8de9fa7f7e4e468fed05b88d (patch) | |
tree | 16f0216aa9c59f9cd3f055be2381cea988f0a2e8 /src/utils.c | |
parent | 045fe106f59207e12ba6aa3f2e3d1c4f3f1f8838 (diff) | |
download | stasis-914ddc68511be45c8de9fa7f7e4e468fed05b88d.tar.gz |
Bugfix
* When the result string grew larger than the initial_size, the function would return NULL even if realloc succeeded
* Replaces fgets with fread to ensure all data returned by the program is consumed.
* The line buffer is zeroed for each iteration
Diffstat (limited to 'src/utils.c')
0 files changed, 0 insertions, 0 deletions