fix: casepath miss diagnostics go to stderr instead of stdout
linux / build (push) Canceled after 15s

This commit is contained in:
2026-11-29 18:41:28 +00:00
parent 2ca63d7061
commit 0906c95693
+2 -2
View File
@@ -286,7 +286,7 @@ char* casepath(char const* path, bool checkPathFirst)
if (!e)
{
printf("casepath couldn't find dir/file \"%s\", full path was %s\n", c, path);
fprintf(stderr, "casepath couldn't find dir/file \"%s\", full path was %s\n", c, path);
// No match, add original name and continue converting further slashes.
strcpy(out + rl, c);
rl += strlen(c);
@@ -301,7 +301,7 @@ char* casepath(char const* path, bool checkPathFirst)
}
if (rl > l + 2) {
printf("\n\ncasepath: Corrected path length is longer then original+2:\n\tOriginal: %s (%zu chars)\n\tCorrected: %s (%zu chars)\n\n", path, l, out, rl);
fprintf(stderr, "\n\ncasepath: Corrected path length is longer then original+2:\n\tOriginal: %s (%zu chars)\n\tCorrected: %s (%zu chars)\n\n", path, l, out, rl);
}
return out;
}