store.seen = 1;
for (i = 0, copy_begin = 0; i < store.seen; i++) {
+ new_line = 0;
if (store.offset[i] == 0) {
store.offset[i] = copy_end = contents_sz;
} else if (store.state != KEY_SEEN) {
} else
copy_end = find_beginning_of_line(
contents, contents_sz,
- store.offset[i]-2, &new_line);
+ store.offset[i], &new_line);
if (copy_end > 0 && contents[copy_end-1] != '\n')
new_line = 1;