diff --git a/Toy.vcxproj b/Toy.vcxproj index b68f000..7dcbe29 100644 --- a/Toy.vcxproj +++ b/Toy.vcxproj @@ -123,6 +123,7 @@ + @@ -135,11 +136,13 @@ + + diff --git a/source/toy_drive_system.c b/source/toy_drive_system.c index 2137e42..a9a157b 100644 --- a/source/toy_drive_system.c +++ b/source/toy_drive_system.c @@ -73,7 +73,7 @@ Toy_Literal Toy_getDrivePathLiteral(Toy_Interpreter* interpreter, Toy_Literal* d size_t fileLength = Toy_lengthRefString(path) + Toy_lengthRefString(filePath); char* file = TOY_ALLOCATE(char, fileLength + 1); //+1 for null - snprintf(file, fileLength, "%s%s", Toy_toCString(drive), Toy_toCString(filePath)); + snprintf(file, fileLength, "%s%s", Toy_toCString(path), Toy_toCString(filePath)); //clean up the drive/path stuff Toy_deleteRefString(drivePath);