diff --git a/mz_os.c b/mz_os.c index cc5ea94..3bd1b9a 100644 --- a/mz_os.c +++ b/mz_os.c @@ -72,7 +72,7 @@ int32_t mz_path_combine(char *path, const char *join, int32_t max_path) if (path_len == 0) { strncpy(path, join, max_path - 1); - path[max_path - 1] = '\0'; + path[max_path - 1] = 0; } else {