diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-26 18:10:39 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-26 18:10:39 +0200 |
commit | 6592bdb9126326dee00f5e0d90b1cbb393f90096 (patch) | |
tree | 4da9149689e9ba1661349000f0a2cd4555c81a51 /rfc2045.c | |
parent | 699c322aead6dead80f1605ca46ad3abbda02435 (diff) | |
download | mblaze-6592bdb9126326dee00f5e0d90b1cbb393f90096.tar.gz mblaze-6592bdb9126326dee00f5e0d90b1cbb393f90096.tar.xz mblaze-6592bdb9126326dee00f5e0d90b1cbb393f90096.zip |
import musl memmem
Diffstat (limited to 'rfc2045.c')
-rw-r--r-- | rfc2045.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rfc2045.c b/rfc2045.c index e919b28..4738894 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -1,5 +1,3 @@ -#define _GNU_SOURCE - #include <sys/types.h> #include <string.h> @@ -134,7 +132,7 @@ blaze822_multipart(struct message *msg, struct message **imsg) else prevpart = msg->body; - char *part = memmem(prevpart, msg->bodyend - prevpart, mboundary, boundarylen); + char *part = mymemmem(prevpart, msg->bodyend - prevpart, mboundary, boundarylen); if (!part) return 0; /// XXX access to stuff before first boundary? @@ -148,7 +146,7 @@ blaze822_multipart(struct message *msg, struct message **imsg) else return 0; // XXX error condition? - char *nextpart = memmem(part, msg->bodyend - part, mboundary, boundarylen); + char *nextpart = mymemmem(part, msg->bodyend - part, mboundary, boundarylen); if (!nextpart) return 0; // XXX error condition |