From: Frédéric Marchal Date: Fri, 10 Jul 2009 13:45:59 +0000 (+0000) Subject: Applied debian patch: opensuse_7_year_assertion.patch X-Git-Tag: v2_2_6~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=137e82e73682614ef774dca8ccbfbbbc60086b04;p=thirdparty%2Fsarg.git Applied debian patch: opensuse_7_year_assertion.patch --- diff --git a/index.c b/index.c index af32b5d..e6ef7e2 100644 --- a/index.c +++ b/index.c @@ -68,7 +68,7 @@ void make_index(void) if(debug) debuga("%s",text[53]); - // Root dir + // Root dir dirp = opendir(outdir); while ((direntp = readdir( dirp )) != NULL) { if(strcmp(IndexTree,"date") == 0) { @@ -225,7 +225,7 @@ void make_index(void) } p = strchr(html, ' '); if (!p) p = html; - if (getword_multisep(year,sizeof(year),html,' ')<0) { + if (getword_multisep(year,sizeof(year),p,' ')<0) { printf("SARG: Maybe you have a broken year in your %s%s/sarg-date file.\n",outdir,direntp->d_name); exit(1); }