Mercurial > masqmail
changeset 412:8a62bebda631
Fixed segfault, caused by a stupid g_strchug/g_strstrip implementation.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 29 Feb 2012 13:33:40 +0100 (2012-02-29) |
parents | 9b93c0a3bd8c |
children | 7c5e51c53f72 |
files | src/conf.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;