mutt stable branch with some hacks
0
fork

Configure Feed

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

Convert pgp_find_hash to use buffer pool.

+7 -9
+7 -9
pgpmicalg.c
··· 162 162 { 163 163 FILE *in = NULL; 164 164 FILE *out = NULL; 165 - 166 - char tempfile[_POSIX_PATH_MAX]; 167 - 165 + BUFFER *tempfile = NULL; 168 166 unsigned char *p; 169 167 size_t l; 170 - 171 168 short rv = -1; 172 169 173 - mutt_mktemp (tempfile, sizeof (tempfile)); 174 - if ((out = safe_fopen (tempfile, "w+")) == NULL) 170 + tempfile = mutt_buffer_pool_get (); 171 + mutt_buffer_mktemp (tempfile); 172 + if ((out = safe_fopen (mutt_b2s (tempfile), "w+")) == NULL) 175 173 { 176 - mutt_perror (tempfile); 174 + mutt_perror (mutt_b2s (tempfile)); 177 175 goto bye; 178 176 } 179 - unlink (tempfile); 177 + unlink (mutt_b2s (tempfile)); 180 178 181 179 if ((in = fopen (fname, "r")) == NULL) 182 180 { ··· 197 195 } 198 196 199 197 bye: 200 - 198 + mutt_buffer_pool_release (&tempfile); 201 199 safe_fclose (&in); 202 200 safe_fclose (&out); 203 201 pgp_release_packet ();