Skip to content

Commit

Permalink
Fix fullpath (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman authored Oct 17, 2021
1 parent a1cab85 commit b9f1386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MT2D/Container/MT2D_Container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ bool MT2D_Container_Save(char *NameAndPath) {
bool MT2D_Container_Export_as_File(int index, char * NewName, char *Path, bool decrypt) {
char *Filename;
bool Saved = false;
Filename = (char*)malloc(strlen(NewName) + strlen(Path) + 1);
sprintf(Filename, "%s%s\0",Path, NewName);
Filename = (char*)malloc(strlen(NewName) + strlen(Path) + 2);
sprintf(Filename, "%s/%s\0",Path, NewName);
MT2D_FILE *Destination = MT2D_FILE_OPEN(Filename, "wb");
if (Destination) {
free(Filename);
Expand Down

0 comments on commit b9f1386

Please sign in to comment.