troglobit / editline

A small replacement for GNU readline() for UNIX
https://troglobit.com/projects/editline/
Other
282 stars 58 forks source link

Fix sementation violation when displaying options #19

Closed jmjatlanta closed 6 years ago

jmjatlanta commented 6 years ago

Fix for #18

When displaying a list of options, one extra byte of memory is used before the reallocation. This fix reallocates once all bytes of the array are used.

troglobit commented 6 years ago

Good catch, thanks! :)