X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bcftools%2Fbcf.c;h=c7059983af944c4724e182c4caa6c8f452750eca;hb=ec8ca3b21511355c3770767be5a7c9b54e218a53;hp=6695c74226059ea55033792dabab3faba4dbda05;hpb=faf76ae18e5ddf2d03253e2ed77f444bcdf4914c;p=samtools.git diff --git a/bcftools/bcf.c b/bcftools/bcf.c index 6695c74..c705998 100644 --- a/bcftools/bcf.c +++ b/bcftools/bcf.c @@ -340,7 +340,7 @@ int remove_tag(char *str, const char *tag, char delim) len_diff += q-p; if ( ! *q ) { *p = 0; break; } // the tag was last, no delim follows else - memmove(p,q,ori_len-(int)(p-str)-(int)(q-p)-1); // *q==delim + memmove(p,q,ori_len-(int)(p-str)-(int)(q-p)); // *q==delim } if ( len_diff==ori_len ) str[0]='.', str[1]=0, len_diff--;