aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weechat/debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/weechat/debug.c b/weechat/debug.c
index 969733c..c0353da 100644
--- a/weechat/debug.c
+++ b/weechat/debug.c
@@ -15,6 +15,7 @@ void debug_init(void) {
char *fname = malloc(strlen(home) + strlen(suffix) + 1);
if (!fname) return; // okay, fine, no debug file
+ sprintf(fname, "%s%s", home, suffix);
g_dfile = fopen(fname, "a");
if (!g_dfile) {