tester: fix launch outside of tester/

This commit is contained in:
Gautier Pelloux-Prayer 2015-07-16 11:00:57 +02:00
parent 304675c924
commit 4eb08fcd2d
3 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit df2d2b8c353fe1ad6680801943d4db2a216e2d6a
Subproject commit 265d7618f6d68a07e7eb9b49b58de634b7d93355

View file

@ -196,7 +196,7 @@ int main (int argc, char *argv[])
liblinphone_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]);

BIN
tester/stereo-record.wav Normal file

Binary file not shown.