]> granicus.if.org Git - neomutt/commitdiff
Use slen instead of assuming _POSIX_PATH_MAX
authorAron Griffis <agriffis@n01se.net>
Tue, 21 Apr 2009 18:09:55 +0000 (14:09 -0400)
committerAron Griffis <agriffis@n01se.net>
Tue, 21 Apr 2009 18:09:55 +0000 (14:09 -0400)
Signed-off-by: Aron Griffis <agriffis@n01se.net>
buffy.c

diff --git a/buffy.c b/buffy.c
index 7b4d424c9b17721343640a1c3a4d7892b85a4ab4..321ca98a35845a68a9dddf4e4b908dad4f2f7ab9 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -512,7 +512,7 @@ void mutt_buffy (char *s, size_t slen)
   int count;
   BUFFY *tmp = Incoming;
 
-  mutt_expand_path (s, _POSIX_PATH_MAX);
+  mutt_expand_path (s, slen);
   switch (mutt_buffy_check (0))
   {
   case 0: