* PERFORMANCE OF THIS SOFTWARE.
*/
+#define _GNU_SOURCE
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <assert.h>
#include <ctype.h>
+#include <time.h>
#include <sys/queue.h>
#include <netinet/in.h>
if (c->dstate == 5) return smtpd_enddata(c);
return 1;
} else {
- char *t = strnstr(*buf, "\r\n", *len);
+ char *t = memmem(*buf, *len, "\r\n", 2);
char *cmd = *buf;
int clen;