commit - 7de1313c10a6f5e52023b7dcb1be4b81dee28065
commit + 9dc0554fce377600fe0ce54848f2e735902616b6
blob - a563080497cd7254b968b0777b78e9e2a5772e92
blob + fc42705e455eed510d33e5ba7fa6469c6e823534
--- lib/diff_main.c
+++ lib/diff_main.c
if (equal_atoms_start + equal_atoms_end < r_len) {
unsigned int add_len = r_len - equal_atoms_start - equal_atoms_end;
if (!diff_state_add_chunk(state, true,
- &l[equal_atoms_start], 0,
- &r[equal_atoms_start], add_len))
+ &l[l_idx], 0,
+ &r[r_idx], add_len))
return ENOMEM;
r_idx += add_len;
}