From 0108679bed3162f0f4a87e2b96dad32ef84040b8 Mon Sep 17 00:00:00 2001 From: tomocy Date: Mon, 26 Feb 2024 07:07:05 +0900 Subject: [PATCH] Fix --- platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.c b/platform.c index 1300c9b..01b7eac 100644 --- a/platform.c +++ b/platform.c @@ -47,7 +47,7 @@ const char* get_dir(const char* path) // According to dirname(3)(https://man7.org/linux/man-pages/man3/dirname.3p.html), // dirname can modify both the given path and the return value. // Especially, the return value may be overwritten by subsequent calls, which is error-prune. - // To avois such behaviour, copy values before use. + // To avoid such behaviour, copy values before use. char* const path2 = copy_str(path); const char* const dir = dirname(path2);