Skip to content

Commit

Permalink
Merge pull request skmp#24 from i30817/working_gdi_parsing
Browse files Browse the repository at this point in the history
fix gdi files path getting mangled by path joining
  • Loading branch information
inactive123 committed Mar 21, 2018
2 parents fff2eb2 + ca188b9 commit ffb4b6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/imgread/gdi.cpp
Expand Up @@ -33,8 +33,8 @@ Disc* load_gdi(const char* file)

char path[512];
strcpy(path,file);
size_t len=strlen(file);
while (len>2)
ssize_t len=strlen(file);
while (len>=0)
{
if (path[len]=='\\' || path[len]=='/')
break;
Expand Down Expand Up @@ -116,4 +116,4 @@ Disc* gdi_parse(const char* file)

void iso_term()
{
}
}

0 comments on commit ffb4b6e

Please sign in to comment.