From a10578acbdd86924574c9d5863b698b90a4ae212 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Mon, 28 Oct 2024 00:47:36 +0100
Subject: [PATCH] SDL_SYS_RenamePath(): Fix error message.
---
src/filesystem/posix/SDL_sysfsops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/filesystem/posix/SDL_sysfsops.c b/src/filesystem/posix/SDL_sysfsops.c
index 463bbb56897e9..db197ed05af72 100644
--- a/src/filesystem/posix/SDL_sysfsops.c
+++ b/src/filesystem/posix/SDL_sysfsops.c
@@ -74,7 +74,7 @@ bool SDL_SYS_RemovePath(const char *path)
bool SDL_SYS_RenamePath(const char *oldpath, const char *newpath)
{
if (rename(oldpath, newpath) < 0) {
- return SDL_SetError("Can't remove path: %s", strerror(errno));
+ return SDL_SetError("Can't rename path: %s", strerror(errno));
}
return true;
}