From 691e6df331e893af5885b1e3a20bb28f9499b265 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 21 Jul 2023 18:03:54 +0200 Subject: [PATCH] Fix out of bounds write Signed-off-by: falkTX --- plugins/carla/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/carla/common.c b/plugins/carla/common.c index 36470deb5a71de..3db43d691252e1 100644 --- a/plugins/carla/common.c +++ b/plugins/carla/common.c @@ -40,7 +40,7 @@ const char *get_carla_bin_path(void) memcpy(mpath, utilspath, utilslen); memcpy(mpath + utilslen, CARLA_OS_SEP_STR "carla-discovery-native", 24); #ifdef _WIN32 - memcpy(mpath + utilslen + 24, ".exe", 5); + memcpy(mpath + utilslen + 23, ".exe", 5); #endif if (os_file_exists(mpath)) {