diff --git a/build/android/liblinphone_tester.mk b/build/android/liblinphone_tester.mk index 0f621b35f..b606c6066 100644 --- a/build/android/liblinphone_tester.mk +++ b/build/android/liblinphone_tester.mk @@ -8,6 +8,7 @@ common_SRC_FILES := \ register_tester.c \ setup_tester.c \ upnp_tester.c \ + eventapi_tester.c # neon diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index 40e1f1b2d..f66255e89 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -96,6 +96,8 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char* char ringbackpath[256]={0}; char rootcapath[256]={0}; char dnsuserhostspath[256]={0}; + + if (path==NULL) path="."; if (path && file){ sprintf(filepath, "%s/%s", path, file); @@ -105,7 +107,11 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char* lc = linphone_core_new(v_table,NULL,*filepath!='\0' ? filepath : NULL,NULL); if (path){ - sprintf(rootcapath, "%s/certificates/cacert.pem", path); +#ifndef ANDROID + snprintf(rootcapath, sizeof(rootcapath), "%s/certificates/cacert.pem", path); +#else + snprintf(rootcapath, sizeof(rootcapath), "%s/cacert.pem", path); +#endif linphone_core_set_root_ca(lc,rootcapath); sprintf(dnsuserhostspath, "%s/%s", path, userhostsfile);