From 5fcd80178336020090fecd4b74dd41bb8892a211 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 25 Jan 2019 02:27:38 -0500 Subject: Use memmem in place of strnstr --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 508678e..1d5d914 100644 --- a/irc.c +++ b/irc.c @@ -140,7 +140,7 @@ retry: char *crlf; char *line = buf; - while (NULL != (crlf = strnstr(line, "\r\n", &buf[len] - line))) { + while (NULL != (crlf = memmem(line, &buf[len] - line, "\r\n", 2))) { crlf[0] = '\0'; if (self.raw) { uiFmt(TagRaw, UICold, "\3%d>>>\3 %s", IRCGray, line); -- cgit 1.4.1-2-gfad0