}
g_ptr_array_add (part->newlines,
- (((gpointer) (goffset) (part->stripped_content))));
+ (((gpointer) (goffset) (part->stripped_content->len))));
}
c = p + 1;
(const guint8 *)" ", 1);
crlf_added = TRUE;
g_ptr_array_add (part->newlines,
- (((gpointer) (goffset) (part->stripped_content))));
+ (((gpointer) (goffset) (part->stripped_content->len))));
}
part->nlines++;
break;
case seen_cr:
case seen_lf:
- part->newlines ++;
+ part->nlines ++;
/* Skip initial spaces */
if (G_UNLIKELY (*p == ' ')) {
g_byte_array_append (part->stripped_content,
(const guint8 *)" ", 1);
g_ptr_array_add (part->newlines,
- (((gpointer) (goffset) (part->stripped_content))));
+ (((gpointer) (goffset) (part->stripped_content->len))));
}
part->nlines++;