mutt stable branch with some hacks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Convert mutt_save_confirm() to use buffer pool.

These are prompts, so don't really need the larger, dynamic
capability, but it might not hurt for a larger path.

+9 -5
+9 -5
muttlib.c
··· 1852 1852 /* returns 0 if OK to proceed, -1 to abort, 1 to retry */ 1853 1853 int mutt_save_confirm (const char *s, struct stat *st) 1854 1854 { 1855 - char tmp[_POSIX_PATH_MAX]; 1855 + BUFFER *tmp = NULL; 1856 1856 int ret = 0; 1857 1857 int rc; 1858 1858 int magic = 0; ··· 1871 1871 { 1872 1872 if (option (OPTCONFIRMAPPEND)) 1873 1873 { 1874 - snprintf (tmp, sizeof (tmp), _("Append messages to %s?"), s); 1875 - if ((rc = mutt_yesorno (tmp, MUTT_YES)) == MUTT_NO) 1874 + tmp = mutt_buffer_pool_get (); 1875 + mutt_buffer_printf (tmp, _("Append messages to %s?"), s); 1876 + if ((rc = mutt_yesorno (mutt_b2s (tmp), MUTT_YES)) == MUTT_NO) 1876 1877 ret = 1; 1877 1878 else if (rc == -1) 1878 1879 ret = -1; 1880 + mutt_buffer_pool_release (&tmp); 1879 1881 } 1880 1882 } 1881 1883 ··· 1896 1898 { 1897 1899 if (option (OPTCONFIRMCREATE)) 1898 1900 { 1899 - snprintf (tmp, sizeof (tmp), _("Create %s?"), s); 1900 - if ((rc = mutt_yesorno (tmp, MUTT_YES)) == MUTT_NO) 1901 + tmp = mutt_buffer_pool_get (); 1902 + mutt_buffer_printf (tmp, _("Create %s?"), s); 1903 + if ((rc = mutt_yesorno (mutt_b2s (tmp), MUTT_YES)) == MUTT_NO) 1901 1904 ret = 1; 1902 1905 else if (rc == -1) 1903 1906 ret = -1; 1907 + mutt_buffer_pool_release (&tmp); 1904 1908 } 1905 1909 } 1906 1910 else