Index: src/main/conffile.c =================================================================== RCS file: /source/radiusd/src/main/conffile.c,v retrieving revision 1.184 diff -u -r1.184 conffile.c --- src/main/conffile.c 22 Oct 2007 13:05:04 -0000 1.184 +++ src/main/conffile.c 12 Nov 2007 17:16:00 -0000 @@ -34,11 +34,11 @@ #ifdef HAVE_DIRENT_H #include +#endif #ifdef HAVE_SYS_STAT_H #include #endif -#endif #include @@ -1090,6 +1090,7 @@ p = strrchr(parentcs->item.filename, '/'); if (!p) return local; + ++p; dirsize = (p - parentcs->item.filename); if ((dirsize + strlen(local)) >= bufsize) {