Mercurial > hg > mlmmj
changeset 307:489493e0fc15
NULL is 0 when strncasecmping
author | mmj |
---|---|
date | Thu, 26 Aug 2004 03:03:17 +1000 |
parents | 82607f6d4025 |
children | 5582a75b0a2a |
files | src/do_all_the_voodo_here.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/do_all_the_voodo_here.c Thu Aug 26 02:59:12 2004 +1000 +++ b/src/do_all_the_voodo_here.c Thu Aug 26 03:03:17 2004 +1000 @@ -87,7 +87,7 @@ while((hdrline = gethdrline(infd))) { /* Done with headers? Then add extra if wanted*/ - if((strncasecmp(hdrline, "mime", 4) == NULL) || + if((strncasecmp(hdrline, "mime", 4) == 0) || ((strlen(hdrline) == 1) && (hdrline[0] == '\n'))){ if(!hdrsadded && hdrfd >= 0) { if(dumpfd2fd(hdrfd, outfd) < 0) {