From c2583e2a3a8abaf4acdd034ef40f4b1ca387a04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Faucou?= Date: Thu, 26 Oct 2023 14:57:33 +0200 Subject: [PATCH] Fix #127 --- machines/posix/tpl_viper_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/posix/tpl_viper_interface.c b/machines/posix/tpl_viper_interface.c index fcad4b651..7b217716a 100644 --- a/machines/posix/tpl_viper_interface.c +++ b/machines/posix/tpl_viper_interface.c @@ -98,7 +98,7 @@ void tpl_viper_init(void) #else viper_path = "../viper"; #endif - strncpy(viper_exe, viper_path, 255); + strncpy(viper_exe, viper_path, 256 - 1 - strlen("/viper")); strcat(viper_exe, "/viper"); if (access(viper_exe, X_OK) != 0)