Fix for scannews

This commit is contained in:
Michiel Broek 2002-01-14 20:51:51 +00:00
parent 1b9fa1f09b
commit fad042b480

View File

@ -269,11 +269,12 @@ int do_one_group(List **art, char *grpname, char *ftntag)
total = atol(strtok(NULL, " "));
start = atol(strtok(NULL, " "));
end = atol(strtok(NULL, " '\0'"));
Syslog('n', "GROUP total %d, start %d, end %d", total, start, end);
if ((msgs.MaxArticles) && (total > msgs.MaxArticles)) {
start = end - msgs.MaxArticles;
total = msgs.MaxArticles;
Syslog('n', "NEW: total %d, start %d, end %d", total, start, end);
}
Syslog('n', "GROUP total %d, start %d, end %d", total, start, end);
if (!total) {
Syslog('N', "No articles");
return RETVAL_OK;