Skip to content

Commit

Permalink
- Trim CdRomLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
emukidid committed Nov 23, 2016
1 parent 7d95c73 commit dd5df42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ int CheckCdrom() {
CdromId[0] = '\0';

strncpy(CdromLabel, (char*)buf + 52, 32);
for(i = 32; i > 0; i--)
if(CdromLabel[i] == ' ')
CdromLabel[i] = 0;

// skip head and sub, and go to the root directory record
dir = (struct iso_directory_record *)&buf[12 + 156];
Expand Down

0 comments on commit dd5df42

Please sign in to comment.