tester: fix launch outside of tester/

parent e397c2f0
......@@ -129,7 +129,7 @@ int main (int argc, char *argv[]) {
belle_sip_tester_init(NULL);
{
if (strstr(argv[0], ".libs")) {
char res_dir[128] = {0};
// this allows to launch liblinphone_tester from outside of tester directory
strncpy(res_dir, argv[0], strstr(argv[0], ".libs") - argv[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment