SIGABORTS

Pretty sure the problem is change the −1 to numchars