- when searching for the '--' after the mime boundary to detect whether its the last, we had an off by one. fixed.
if (next_boundary != NULL) {
/* If we pass out of scope, don't attempt to
* read past the end boundary. */
if (next_boundary != NULL) {
/* If we pass out of scope, don't attempt to
* read past the end boundary. */
- if ((*(next_boundary + m->b[startary].len + 1) == '-') &&
- (*(next_boundary + m->b[startary].len + 2) == '-') ){
+ if ((*(next_boundary + m->b[startary].len) == '-') &&
+ (*(next_boundary + m->b[startary].len + 1) == '-') ){
ptr = content_end;
}
else {
ptr = content_end;
}
else {