<<< Date Index >>>     <<< Thread Index >>>

[PATCH 1 of 3] Use slen instead of assuming _POSIX_PATH_MAX



# HG changeset patch
# User Aron Griffis <agriffis@xxxxxxxxx>
# Date 1240337395 14400
# Branch HEAD
# Node ID 874143a8eefd52e9672a885f520ac795b102d869
# Parent  515d08f5447129c238aff810c413c6dee749023a
Use slen instead of assuming _POSIX_PATH_MAX

Signed-off-by: Aron Griffis <agriffis@xxxxxxxxx>

diff --git a/buffy.c b/buffy.c
--- a/buffy.c
+++ b/buffy.c
@@ -512,7 +512,7 @@
   int count;
   BUFFY *tmp = Incoming;
 
-  mutt_expand_path (s, _POSIX_PATH_MAX);
+  mutt_expand_path (s, slen);
   switch (mutt_buffy_check (0))
   {
   case 0: