SILC: tilde expansion broken in path variables
Secure chat and conferencing protocol
Brought to you by:
priikone
From: <si...@fj...> - 2002-05-26 13:05:39
|
I just upgraded from silc 0.7.9 and hit an immediate problem: my log was getting sent to a garbage directory under my home directory instead of ~/log/silc/$tag/$0.log like my autolog_path specifies. The bug is in convert_home() - the memory address of the get_home_dir function is being passed into g_strconcat instead of actually calling get_home_dir and building the string on the result: --- silc-client-0.9.1/irssi/src/core/misc.c- Fri Apr 5 08:54:43 2002 +++ silc-client-0.9.1/irssi/src/core/misc.c Sun May 26 04:49:09 2002 @@ -466,7 +466,7 @@ char *convert_home(const char *path) { return *path == '~' && (*(path+1) == '/' || *(path+1) == '\0') ? - g_strconcat((char *)get_home_dir, path+1, NULL) : + g_strconcat(get_home_dir(), path+1, NULL) : g_strdup(path); } |