]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixed typo in calculation of size of available buffer. 125/head
authorVladimir Lettiev <thecrux@gmail.com>
Tue, 6 Nov 2012 08:21:21 +0000 (12:21 +0400)
committerVladimir Lettiev <thecrux@gmail.com>
Tue, 6 Nov 2012 08:21:21 +0000 (12:21 +0400)
This resolves issue when $INCLUDE directive ignores files with
relative path.

src/main/files.c

index 547ccec6c107cd7fc51e61c07953fedb9aaaaf40..e6f75b5233d161ee4ad9cf7ae880e7444c417e3c 100644 (file)
@@ -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));