diff options
Diffstat (limited to 'weechat/tomsg.c')
-rw-r--r-- | weechat/tomsg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weechat/tomsg.c b/weechat/tomsg.c index 25e62e5..9d6f65c 100644 --- a/weechat/tomsg.c +++ b/weechat/tomsg.c @@ -350,7 +350,10 @@ int weechat_plugin_init(struct t_weechat_plugin *plugin,int argc,char **argv){ (void)argc; (void)argv; weechat_plugin=plugin; - debugf=fopen("/Users/Tom/Desktop/debugf.txt","w"); + char *fname; + asprintf(&fname,"%s/Desktop/debugf.txt",getenv("HOME")); + debugf=fopen(fname,"w"); + free(fname); setvbuf(debugf,NULL,_IONBF,0); fprintf(debugf,"------\n"); |