Skip to content

Commit

Permalink
Fix #127
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Faucou committed Oct 26, 2023
1 parent bf78dea commit c2583e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machines/posix/tpl_viper_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c2583e2

Please sign in to comment.