The get_tok function declares data as static char * when it only needs to be char *. It also limits the size of data unnecessarily. I'm thinking data used to be allocated statically and was changed to dynamic but the code was not cleaned up.
Log in to post a comment.