Fixed a dumb typo

This commit is contained in:
2023-03-15 06:39:19 +11:00
parent e2fa1cf2e8
commit 4b83f1f0d6
2 changed files with 4 additions and 1 deletions

View File

@@ -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);