aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-21 19:09:51 +0000
committerJason Woodward2005-01-21 19:09:51 +0000
commit4786424804b7f95bcf1fe1ff008614024d225d7e (patch)
tree614f17d8742ba3947c8fe9341d751b378a9826eb /src
parentf28eb2d633c27de117a0906d695334479f3c9ce1 (diff)
downloadslapt-get-4786424804b7f95bcf1fe1ff008614024d225d7e.tar.gz
upped the max size of package requires, suggests token can be ' ' or ',' now
Diffstat (limited to 'src')
-rw-r--r--src/package.h2
-rw-r--r--src/transaction.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/package.h b/src/package.h
index da77fca..0f30e16 100644
--- a/src/package.h
+++ b/src/package.h
@@ -37,7 +37,7 @@
#define MIRROR_LEN 200
#define LOCATION_LEN 50
#define DESCRIPTION_LEN 1024
-#define REQUIRED_LEN 2048
+#define REQUIRED_LEN 3072
#define CONFLICTS_LEN 2048
#define SUGGESTS_LEN 2048
#define MD5_STR_LEN 34
diff --git a/src/transaction.c b/src/transaction.c
index f470dbb..2ff2e43 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -637,7 +637,7 @@ static void add_suggestion(transaction_t *tran, pkg_info_t *pkg){
p = pkg->suggests + position;
if( p == NULL ) break;
- si = index(p,' ');
+ si = strpbrk(p," ,");
if( si == NULL || strlen(si) <= 2 ) break;
si = si + 1;