- kiltedknight writes: Busybox incorrectly parses a line from the status file, claimi...
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 5 Jun 2007 17:28:56 +0000 (17:28 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 5 Jun 2007 17:28:56 +0000 (17:28 -0000)
  Closes #1221

archival/dpkg.c

index 0ab54c30ec27c8f016d1c47244f2dc1dbf6b3c5a..0ca2704a1dfa8356eac760a14f5d682601832dd0 100644 (file)
@@ -413,7 +413,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole
                        or_edge = xmalloc(sizeof(edge_t));
                        or_edge->type = edge_type + 1;
                        or_edge->name = search_name_hashtable(field);
-                       or_edge->version = 0; // tracks the number of altenatives
+                       or_edge->version = 0; // tracks the number of alternatives
                        add_edge_to_node(parent_node, or_edge);
                }
 
@@ -432,7 +432,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole
                                edge->version = search_name_hashtable("ANY");
                        } else {
                                /* Skip leading ' ' or '(' */
-                               version += strspn(field2, " (");
+                               version += strspn(version, " (");
                                /* Calculate length of any operator characters */
                                offset_ch = strspn(version, "<=>");
                                /* Determine operator */