updates
authorPekka Riikonen <priikone@silcnet.org>
Sun, 2 Sep 2001 18:18:19 +0000 (18:18 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 2 Sep 2001 18:18:19 +0000 (18:18 +0000)
apps/irssi/src/silc/core/clientconfig.c

index 6db8c6e72b9d8629d6eb7206f50caca07c894c34..5626f2a0cfa254e283e4215af8063d0fb76f1f1d 100644 (file)
@@ -68,6 +68,7 @@ SilcClientConfig silc_client_config_alloc(char *filename)
   SilcClientConfig new;
   SilcBuffer buffer;
   SilcClientConfigParse config_parse;
+  char *str;
 
   SILC_LOG_DEBUG(("Allocating new configuration object"));
 
@@ -77,7 +78,9 @@ SilcClientConfig silc_client_config_alloc(char *filename)
   /* Open configuration file and parse it */
   config_parse = NULL;
   buffer = NULL;
-  silc_config_open(filename, &buffer);
+  str = convert_home(filename);
+  silc_config_open(str, &buffer);
+  g_free(str);
   if (!buffer)
     goto fail;
   if ((silc_client_config_parse(new, buffer, &config_parse)) == FALSE)