diff --git a/opendkim/opendkim-db.c b/opendkim/opendkim-db.c index c0b6fcd9..304f1a3a 100644 --- a/opendkim/opendkim-db.c +++ b/opendkim/opendkim-db.c @@ -807,7 +807,7 @@ dkimf_db_datasplit(char *buf, size_t buflen, { char *q; - q = strchr(p, ':'); + q = memchr(p, ':', remain); if (q != NULL) { clen = q - p;