# HG changeset patch # User markus schnalke # Date 1330518820 -3600 # Node ID 8a62bebda631a911cf6b92ad19a43a8fddb9ae77 # Parent 9b93c0a3bd8cf57ce59b53cb90d2c67bf7542169 Fixed segfault, caused by a stupid g_strchug/g_strstrip implementation. diff -r 9b93c0a3bd8c -r 8a62bebda631 src/conf.c --- a/src/conf.c Wed Feb 29 12:06:33 2012 +0100 +++ b/src/conf.c Wed Feb 29 13:33:40 2012 +0100 @@ -221,7 +221,7 @@ g_strstrip(line); iface->address = g_strdup(line); iface->port = (cp) ? atoi(++cp) : def_port; - DEBUG(9) fprintf(stderr,"found: address:port=%s:%u\n", + DEBUG(9) fprintf(stderr, "found: address:port=%s:%u\n", iface->address, iface->port); return iface; } @@ -562,7 +562,7 @@ } if (!listen_addrs_tmp) { conf.listen_addresses = g_list_append(NULL, - parse_interface("localhost", 25)); + parse_interface(strdup("localhost"), 25)); } else { GList *node;