]> code.citadel.org Git - citadel.git/commitdiff
mime_parser: remove code that reduces the size of the
authorArt Cancro <ajc@citadel.org>
Tue, 13 Mar 2007 02:39:42 +0000 (02:39 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Mar 2007 02:39:42 +0000 (02:39 +0000)
extracted multipart component by one, because it's not correct.
The original detected size appears to be the correct one.  This
probably means that there is an off-by-one error somewhere else.

citadel/mime_parser.c

index 45c16d2bc2d3f046d7f040fbf4d1259ba4308209..abe1f4a99abc82bc436a9925685da5cac83279ff 100644 (file)
@@ -452,9 +452,14 @@ void the_mime_parser(char *partnum,
                        ++length;
                }
                part_end = content_end;
-               /* fix an off-by-one error */
+
+               /******
+                * I thought there was an off-by-one error here, but there isn't.
+                * This probably means that there's an off-by-one error somewhere
+                * else ... or maybe only in certain messages?
                --part_end;
                --length;
+               ******/
                
                /* Truncate if the header told us to */
                if ( (content_length > 0) && (length > content_length) ) {