Closed jhzeba closed 5 years ago
@hzeba Thank you for finding this issue. I will add a test case for it later.
@tomghuang Not a problem. I saw a few other places in the code appending "\n" as a string. These could be updated to use _catc() function as well.
The arg_dstr_cat() function expects a string. When the function is passed a pointer to char type, the '\0' is missing and produces garbage.