Commit 00a88dd5e6f83791e293309e3bed91cd50fda71f

Authored by Silvan Calarco
1 parent 4d9e6ffad9
Exists in master

Increase obsolete limit (OBSOLETE_MAX) from 256 to 1024

Showing 2 changed files with 7 additions and 5 deletions Side-by-side Diff

... ... @@ -244,16 +244,16 @@
244 244 {
245 245 struct providedList *prov = ct->providedlist_idx[archidx][0];
246 246 int i,j,k;
247   - int obs[256];
  247 + int obs[OBSOLETE_MAX];
248 248 char buf[PATH_MAX];
249 249 struct headerList *currheader;
250   -
  250 +
251 251 while (prov) {
252   -
253   - if (prov->numproviders > 256) {
  252 +
  253 + if (prov->numproviders > OBSOLETE_MAX) {
254 254 return 1;
255 255 }
256   -
  256 +
257 257 if (prov->numproviders > 1) {
258 258 for (i = 0; i < prov->numproviders; i++) obs[i]=-1;
259 259 for (i = 0; i < prov->numproviders; i++)
src/include/distromatic.h
... ... @@ -11,6 +11,8 @@
11 11 #include "globaldefs.h"
12 12 #include "headerlist.h"
13 13  
  14 +#define OBSOLETE_MAX 1024
  15 +
14 16 struct configDefaults {
15 17 char *html_basedir;
16 18 char *distribution_name;