[PATCH] the usage of strchr is wrong