From: Florian Forster Date: Sat, 12 Jul 2008 12:10:54 +0000 (+0200) Subject: src/sn_network.c: Fix a bug/typo in the unserialize code. X-Git-Tag: v1.0.0~90^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=13a7332d46085ad6272d1476418a6414db119cc9;p=sort-networks.git src/sn_network.c: Fix a bug/typo in the unserialize code. --- diff --git a/src/sn_network.c b/src/sn_network.c index f6813e7..bda2e81 100644 --- a/src/sn_network.c +++ b/src/sn_network.c @@ -760,10 +760,10 @@ sn_network_t *sn_network_unserialize (char *buffer, size_t buffer_size) break; str_key = line; - str_value = strchr (buffer, ':'); + str_value = strchr (line, ':'); if (str_value == NULL) { - printf ("Cannot parse line: %s\n", buffer); + printf ("Cannot parse line: %s\n", line); continue; }