]> diplodocus.org Git - nmh/blobdiff - config/config.c
Fix invalid pointer arithmetic.
[nmh] / config / config.c
index c44f1396fcac9fd63b8865f57e6a1449672de062..fa3df3bd8068d99ad46772bac8c1a76fb701ee72 100644 (file)
@@ -6,13 +6,12 @@
  */
 
 #include <h/mh.h>
-#include "../sbr/m_maildir.h"
+#include "sbr/m_maildir.h"
 #include <pwd.h>
 
 #define nmhbindir(file) NMHBINDIR#file
 #define nmhlibexecdir(file) NMHLIBEXECDIR#file
 #define nmhetcdir(file) NMHETCDIR#file
-#define nmhdocdir(file) NMHDOCDIR#file
 
 
 /*
@@ -78,7 +77,7 @@ try_it:
 
     /* Check nmh `etc' directory */
     snprintf (epath, sizeof(epath), nmhetcdir(/%s), file);
-    return (access (epath, R_OK) != NOTOK ? epath : file);
+    return access(epath, R_OK) != NOTOK ? epath : file;
 }