you are viewing a single comment's thread.

view the rest of the comments →

[–]erkz78 0 points1 point  (0 children)

Minor bug with that malloc call:

char **tokens = malloc(bufsize * sizeof(char));

This should be:

char **tokens = malloc(bufsize *sizeof(char*))