mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
Really fixed RFS length patch bug and ob_indel processing.
This commit is contained in:
parent
e7e8b2d630
commit
2a67153613
@ -277,7 +277,7 @@ int ob_indel_space(overlay_buffer *b,int offset,int shift)
|
||||
if (ob_makespace(b,-shift)) return -1;
|
||||
bcopy(&b->bytes[offset],&b->bytes[offset+shift],b->length-(offset+shift));
|
||||
} else if (shift<0) { /* free up space */
|
||||
bcopy(&b->bytes[offset],&b->bytes[offset+shift],b->length-(offset-shift));
|
||||
bcopy(&b->bytes[offset-shift],&b->bytes[offset],b->length-(offset-shift));
|
||||
}
|
||||
b->length+=shift;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user