FreeRADIUS/freeradius-server — pull request #125 by vlet (2012-11-06 08:48:41+00:00)
Title: Fixed typo in calculation of size of available buffer.

Hi.

I have got a same issue as described in this topic:
http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg78571.html
It seems that $INCLUDE directive ignores files with relative path.
Due to a typo at line 160 of src/main/files.c, calculed buffer size becomes negative (as gdb shows) and only \0 is copied and newfile contains only path of base directory of file.
Proposed patch fixed this bug.