Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't null-terminate some random std::string.
  • Loading branch information
jordan-woyak committed Mar 4, 2013
1 parent fcf87f6 commit 0041ec6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/Core/Core/Src/HW/GCMemcard.cpp
Expand Up @@ -432,7 +432,6 @@ std::string GCMemcard::DEntry_BIFlags(u8 index) const
flags.push_back((x & 0x80) ? '1' : '0');
x = x << 1;
}
flags.push_back(0);
return flags;
}

Expand Down Expand Up @@ -469,7 +468,6 @@ std::string GCMemcard::DEntry_IconFmt(u8 index) const
format.push_back((x & 0x80) ? '1' : '0');
x = x << 1;
}
format.push_back(0);
return format;
}

Expand All @@ -485,7 +483,6 @@ std::string GCMemcard::DEntry_AnimSpeed(u8 index) const
speed.push_back((x & 0x80) ? '1' : '0');
x = x << 1;
}
speed.push_back(0);
return speed;
}

Expand All @@ -498,7 +495,6 @@ std::string GCMemcard::DEntry_Permissions(u8 index) const
permissionsString.push_back((Permissions & 16) ? 'x' : 'M');
permissionsString.push_back((Permissions & 8) ? 'x' : 'C');
permissionsString.push_back((Permissions & 4) ? 'P' : 'x');
permissionsString.push_back(0);
return permissionsString;
}

Expand Down

0 comments on commit 0041ec6

Please sign in to comment.