This is caused by passing NULL to strchr() function. Behavior of strchr(NULL, c) is implementation-dependent. Indeed, MinGW-w64 gcc crashes if strchr(NULL, c) is executed.
Log in to post a comment.