From 45d8228dff95de1cf6f7400212f1698f0774d82a Mon Sep 17 00:00:00 2001 From: Jaime Moreira Date: Sat, 16 Apr 2022 11:53:22 -0400 Subject: [PATCH] Corrected silly string concatenation --- src/client/input/sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/input/sdl.c b/src/client/input/sdl.c index 87da77b6..c97fd0a5 100644 --- a/src/client/input/sdl.c +++ b/src/client/input/sdl.c @@ -1285,7 +1285,7 @@ IN_Init(void) { for (const char* rawPath = FS_GetNextRawPath(NULL); rawPath != NULL; rawPath = FS_GetNextRawPath(rawPath)) { - snprintf(controllerdb, MAX_OSPATH, "%s/%s", rawPath, "gamecontrollerdb.txt"); + snprintf(controllerdb, MAX_OSPATH, "%s/gamecontrollerdb.txt", rawPath); nummappings = SDL_GameControllerAddMappingsFromFile(controllerdb); if (nummappings > 0) Com_Printf ("%d mappings loaded from gamecontrollerdb.txt\n", nummappings);