src/sn_network.c: Fix a bug/typo in the unserialize code.
authorFlorian Forster <octo@leeloo.home.verplant.org>
Sat, 12 Jul 2008 12:10:54 +0000 (14:10 +0200)
committerFlorian Forster <octo@leeloo.home.verplant.org>
Sat, 12 Jul 2008 12:10:54 +0000 (14:10 +0200)
src/sn_network.c

index f6813e7..bda2e81 100644 (file)
@@ -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;
     }