Skip to content

Commit 4f273f1

Browse files
committed
fix the bug of fixMGI
#392
1 parent 7402c75 commit 4f273f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/read.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ bool Read::fixMGI() {
180180
int len = mName->length();
181181
if((*mName)[len-1]=='1' || (*mName)[len-1]=='2') {
182182
if((*mName)[len-2] == '/') {
183+
string* newName = new string(mName->substr(0, len-2) + " " + mName->substr(len-2, 2));
183184
delete mName;
184-
mName = new string(mName->substr(0, len-2) + " " + mName->substr(len-2, 2));
185+
mName = newName;
185186
return true;
186187
}
187188
}

0 commit comments

Comments
 (0)