aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2005-02-13 01:38:53 +0000
committerJason Woodward2005-02-13 01:38:53 +0000
commit5904d31fca40c5800f8499157de4cbe45a16f0e3 (patch)
treec9159fa2320101e92539b421fcaabc6d4d008992
parent4e091ce2de93d196a354308353ff942400eb2250 (diff)
downloadslapt-get-5904d31fca40c5800f8499157de4cbe45a16f0e3.tar.gz
moved exclude list increment within realloc test
-rw-r--r--ChangeLog2
-rw-r--r--src/configuration.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 52318bb..f0c0d71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,5 @@
-0.9.9h Feb 10, 2005
+0.9.9h Feb 12, 2005
* removed hardcoded limits REQUIRED_LEN CONFLICTS_LEN SUGGESTS_LEN
* added search_transaction_by_pkg() to make checks more specific
* remove package by name-version now possible
diff --git a/src/configuration.c b/src/configuration.c
index 4188876..d553500 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -219,9 +219,9 @@ static struct exclude_list *parse_exclude(char *line){
list->excludes = realloc_tmp;
list->excludes[ list->count ] = buffer;
list->excludes[ list->count ][strlen(buffer)] = '\0';
+ ++list->count;
}
- ++list->count;
position += (strlen(line + position) - strlen(pointer) );
}
continue;