Refactor package module into C
The strlen is called on key_ptr which is just a small self contained string (e.g. "\ngroup = ") that is null terminated.
Refactor package module into C
I used snprintf because I didn't want to risk any buffer overflows, but it can truncate perfectly valid inputs if they are long enough (e.g. very long url). I'll turn aux into a malloc'd…
Refactor package module into C
Yeah, dangling pointers can cause some real headaches, so I prefer to have free functions set the pointer to NULL themselves to make it less error prone.
Refactor package module into C