From 4b83f1f0d691517594df5b2f3fc95862414ad205 Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Wed, 15 Mar 2023 06:39:19 +1100 Subject: [PATCH] Fixed a dumb typo --- Toy.vcxproj | 3 +++ source/toy_drive_system.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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);