From b8fc3b2dc71689d3a6102f453775e1bbdd1fc2e1 Mon Sep 17 00:00:00 2001 From: janisozaur Date: Thu, 7 Apr 2016 18:44:21 +0200 Subject: [PATCH] Fix missing path separator in error message (#3247) --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index e49927276a..1a2387b9f3 100644 --- a/src/config.c +++ b/src/config.c @@ -920,7 +920,8 @@ bool config_find_or_browse_install_directory() return true; utf8 message[MAX_PATH] = { 0 }; - sprintf(message, "Could not find %sData%cg1.dat at this path", installPath, platform_get_path_separator()); + char separator = platform_get_path_separator(); + sprintf(message, "Could not find %s%cData%cg1.dat at this path", installPath, separator, separator); platform_show_messagebox(message); } }