reports: trivial fix for previous commit

This commit is contained in:
Silvan Calarco 2013-01-02 00:37:31 +01:00
parent 27b05fffa1
commit 4e6ad6d365

View File

@ -2069,7 +2069,7 @@ print_datatables(struct configTag *ct, int arch) {
fprintf(fbsh,"%s",currchild->name);
fprintf(fb," %s",currchild->name);
for (i = 0; i < currchild->obsoletecount; i++ ) {
if ((i > 0) && (!strcmp(currchild->obsoletename[i],currchild->obsoletename[i-1]))) break;
if ((i > 0) && (!strcmp(currchild->obsoletename[i],currchild->obsoletename[i-1]))) continue;
if (strlen(obsoletebuf) + strlen(currchild->obsoletename[i]) >= PATH_MAX - 2) {
logmsg(LOG_WARNING, "%s: reached obsoletebuf maximum size (%d); skipping further obsoletes in output file",
currheadersourcelist->name, PATH_MAX);