small patch for mime.c
Thomas Wiegner <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Organization | Powered by Penguin |
| Message-ID | <20090514145553.GA7919@fliewatuet> |
Hi,
with the recent discussion, about the multipart patch I noticed,
that it also fixes two small issues, which should be better fixed in
the slrn svn.
--- mime.c (revision 319)
+++ mime.c (working copy)
@@ -107,13 +107,13 @@
}
b += 5;
}
- else if (0 == slrn_case_strncmp (b, "message/", 5))
+ else if (0 == slrn_case_strncmp (b, "message/", 8))
{
a->mime.content_type = CONTENT_TYPE_MESSAGE;
a->mime.content_subtype = CONTENT_SUBTYPE_UNKNOWN;
b += 8;
}
- else if (0 == slrn_case_strncmp (b, "multipart/", 5))
+ else if (0 == slrn_case_strncmp (b, "multipart/", 10))
{
a->mime.content_type = CONTENT_TYPE_MULTIPART;
a->mime.content_subtype = CONTENT_SUBTYPE_UNKNOWN;
Cheers,
Thomas
--
[X] Nail here for new Monitor
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com