From 5cd4d1025410ca686b5a7e83875d86c0ad6b1923 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 1 Jul 2013 16:45:00 +0200 Subject: [PATCH] Fix wrong code. --- tester/liblinphone_tester.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index f66255e89..cd278a7f9 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -100,8 +100,8 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char* if (path==NULL) path="."; if (path && file){ - sprintf(filepath, "%s/%s", path, file); - CU_ASSERT_TRUE_FATAL(ortp_file_exist(path)==0); + snprintf(filepath, sizeof(filepath), "%s/%s", path, file); + CU_ASSERT_TRUE_FATAL(ortp_file_exist(filepath)==0); } lc = linphone_core_new(v_table,NULL,*filepath!='\0' ? filepath : NULL,NULL);