diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-12-26 22:53:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-12-26 22:53:25 +0000 |
commit | 4c5f1ccc3f27ce8ea51e9e0a0387a82e131a78ba (patch) | |
tree | 59e8377d153968bf68ef5dcbfd79b77fb3646b57 /unmime.c | |
parent | 31fbe7cac1c4d1ed16f9fd51ee48419c61f9e4ad (diff) | |
download | fetchmail-4c5f1ccc3f27ce8ea51e9e0a0387a82e131a78ba.tar.gz fetchmail-4c5f1ccc3f27ce8ea51e9e0a0387a82e131a78ba.tar.bz2 fetchmail-4c5f1ccc3f27ce8ea51e9e0a0387a82e131a78ba.zip |
Minor optimizations from Federico.
svn path=/trunk/; revision=2689
Diffstat (limited to 'unmime.c')
-rw-r--r-- | unmime.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -211,7 +211,7 @@ void UnMimeHeader(unsigned char *hdr) * and prepare to process the new MIME charset/encoding * header. */ - p_in = p + strlen(MIMEHDR_INIT); + p_in = p + sizeof(MIMEHDR_INIT) - 1; state = S_SKIP_MIMEINIT; } } @@ -270,10 +270,10 @@ static void SetEncoding8bit(unsigned char *XferEncOfs) unsigned char *p; if (XferEncOfs != NULL) { - memcpy(XferEncOfs, ENC8BIT, strlen(ENC8BIT)); + memcpy(XferEncOfs, ENC8BIT, sizeof(ENC8BIT) - 1); /* If anything left, in this header, replace with whitespace */ - for (p=XferEncOfs+strlen(ENC8BIT); (*p >= ' '); p++) *p=' '; + for (p=XferEncOfs+sizeof(ENC8BIT)-1; (*p >= ' '); p++) *p=' '; } } |