libc: remove extra memchr