[Pkg-voip-commits] [bctoolbox] 06/60: C99

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit e10989ae785dc6a7c9d94efd178ef4b6dbeabe88
Author: Benjamin Reis <benjamin.reis at belledonne-communications.com>
Date:   Thu Mar 30 15:54:08 2017 +0200

    C99
---
 tester/bctoolbox_tester.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tester/bctoolbox_tester.c b/tester/bctoolbox_tester.c
index 3cfcd15..c80f49f 100644
--- a/tester/bctoolbox_tester.c
+++ b/tester/bctoolbox_tester.c
@@ -57,6 +57,9 @@ void bctoolbox_tester_before_each() {
 }
 
 int bctoolbox_tester_set_log_file(const char *filename) {
+	BctoolboxLogHandler* filehandler;
+	char dirbuffer[512];
+	char basebuffer[512];
 	if (log_file) {
 		fclose(log_file);
 	}
@@ -66,7 +69,7 @@ int bctoolbox_tester_set_log_file(const char *filename) {
 		return -1;
 	}
 	bctbx_message("Redirecting traces to file [%s]", filename);
-	BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, dirname(filename), basename(filename), log_file);
+	filehandler = bctbx_create_file_log_handler(0, dirname_r(filename, dirbuffer), basename_r(filename, basebuffer), log_file);
 	bctbx_add_log_handler(filehandler);
 	return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list