# # # patch "xdelta.cc" # from [e7233f3497342a6e7f35a1bbdbde0b898305aef0] # to [dd752313c7bed37c3a58b6d8af1c1e9f15e5ff24] # ============================================================ --- xdelta.cc e7233f3497342a6e7f35a1bbdbde0b898305aef0 +++ xdelta.cc dd752313c7bed37c3a58b6d8af1c1e9f15e5ff24 @@ -119,9 +119,9 @@ string::const_iterator bi = b.begin() + bpos + tlen; string::const_iterator be = b.end(); - while((*ai == *bi) - && (ai != ae) - && (bi != be)) + while((ai != ae) + && (bi != be) + && (*ai == *bi)) { ++tlen; ++ai;