segmentation fault when freeing non-allocated memory.
else if (command[x] == 's' && filename != NULL)
{
char *fn = mutt_quote_filename(filename);
-
- while (*fn && y < sizeof (buf))
- buf[y++] = *fn++;
+ int i;
+
+ for(i = 0; fn[i] && y < sizeof(buf); i++)
+ buf[y++] = fn[i];
FREE(&fn);
needspipe = FALSE;
+++ /dev/null
-From michael Thu Apr 2 17:51:50 PST 1998
-From: michael
-To: michael
-Subject: complex multipart
-Mime-Version: 1.0
-Content-Type: multipart/mixed; boundary=foo
-
---foo
-Content-Type text/plain
-
-This is part one.
-
---foo
-Content-Type text/plain
-
-This is part two.
-
---foo
-Content-Type text/plain
-
-This is part three.
-
---foo
-Content-Type: message/rfc822
-
-From: bob
-To: joe
-Subject: nested message
-Mime-Version: 1.0
-Content-Type: multipart/mixed; boundary=bar
-
---bar
-Content-Type text/plain
-
-This is subpart one.
-
---bar
-Content-Type text/plain
-
-This is subpart two.
-
---bar--
-
---foo--
-