]> granicus.if.org Git - mutt/commitdiff
Fixing Thomas' screw-up in mutt_concat_path.
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 13 Dec 2002 15:53:36 +0000 (15:53 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 13 Dec 2002 15:53:36 +0000 (15:53 +0000)
lib.c

diff --git a/lib.c b/lib.c
index e21f5612e27e7e17e3b42169ba85dff76db59f66..2a7e92ccec09fa70d6f2a527b4ecde04cdcbb9be 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -630,6 +630,6 @@ char *mutt_concat_path (char *d, const char *dir, const char *fname, size_t l)
   if (!*fname || (*dir && dir[strlen(dir)-1] == '/'))
     fmt = "%s%s";
   
-  snprintf (d, sizeof (d), fmt, dir, fname);
+  snprintf (d, l, fmt, dir, fname);
   return d;
 }