diff options
| author | Curtis McEnroe | 2019-01-25 02:27:38 -0500 |
|---|---|---|
| committer | Curtis McEnroe | 2019-01-25 02:27:38 -0500 |
| commit | 5fcd80178336020090fecd4b74dd41bb8892a211 (patch) | |
| tree | 8181022e253e30f27cff83d7b336954d4363d828 | |
| parent | a7f3ff317278d8179d6006d65b1f9b31e97155b0 (diff) | |
Use memmem in place of strnstr
| -rw-r--r-- | irc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
