Final 0.6.11 version; only trivial changes

This commit is contained in:
srs5694
2010-09-25 20:39:52 -04:00
parent 5a081757ea
commit ab4b043839
11 changed files with 36 additions and 21 deletions

View File

@@ -106,7 +106,7 @@ void GPTPart::SetName(const string & theName) {
junk = fgets(newName, NAME_SIZE / 2, stdin);
// Input is likely to include a newline, so remove it....
i = strlen(newName);
i = (int) strlen(newName);
if ((i > 0) && (i <= NAME_SIZE))
if (newName[i - 1] == '\n')
newName[i - 1] = '\0';