From: Vladimir Lettiev Date: Tue, 6 Nov 2012 08:21:21 +0000 (+0400) Subject: Fixed typo in calculation of size of available buffer. X-Git-Tag: release_2_2_1~221^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F125%2Fhead;p=thirdparty%2Ffreeradius-server.git Fixed typo in calculation of size of available buffer. This resolves issue when $INCLUDE directive ignores files with relative path. --- diff --git a/src/main/files.c b/src/main/files.c index 547ccec6c1..e6f75b5233 100644 --- a/src/main/files.c +++ b/src/main/files.c @@ -157,7 +157,7 @@ parse_again: *p = FR_DIR_SEP; } getword(&ptr, p + 1, - sizeof(newfile) - 1 - (p - buffer)); + sizeof(newfile) - 1 - (p - newfile)); } else { getword(&ptr, newfile, sizeof(newfile));