Skip to content

Commit

Permalink
fix the bug of fixMGI
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Nov 7, 2024
1 parent 7402c75 commit 4f273f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ bool Read::fixMGI() {
int len = mName->length();
if((*mName)[len-1]=='1' || (*mName)[len-1]=='2') {
if((*mName)[len-2] == '/') {
string* newName = new string(mName->substr(0, len-2) + " " + mName->substr(len-2, 2));
delete mName;
mName = new string(mName->substr(0, len-2) + " " + mName->substr(len-2, 2));
mName = newName;
return true;
}
}
Expand Down

0 comments on commit 4f273f1

Please sign in to comment.