off by one fix
authorChristian Thaeter <ct@pipapo.org>
Mon, 8 Oct 2007 17:18:18 +0000 (19:18 +0200)
committerChristian Thaeter <ct@pipapo.org>
Mon, 8 Oct 2007 17:18:18 +0000 (19:18 +0200)
rxpd.c

diff --git a/rxpd.c b/rxpd.c
index 8e5c076..c607681 100644 (file)
--- a/rxpd.c
+++ b/rxpd.c
@@ -128,7 +128,7 @@ rxpd_file_new (struct rxpd_base* base, const char* filename)
 
   if (!filename ||
       strcspn(filename, RXPD_FILE_ILG_CHARS) != strlen (filename) ||
-      strlen (filename) + strlen (base->rulesdir) > 4097)
+      strlen (filename) + strlen (base->rulesdir) > 4095)
     return NULL;
 
   strcpy (buf, base->rulesdir);