if (option (OPTMAILCAPSANITIZE))
mutt_sanitize_filename (type, 0);
- while (command[x] && x<clen && y<sizeof(buf))
+ while (x < clen && command[x] && y < sizeof (buf) - 1)
{
- if (command[x] == '\\') {
+ if (command[x] == '\\')
+ {
x++;
buf[y++] = command[x++];
}
int z = 0;
x++;
- while (command[x] && command[x] != '}' && z<sizeof(param))
+ while (command[x] && command[x] != '}' && z < sizeof (param) - 1)
param[z++] = command[x++];
param[z] = '\0';
/* rfc1524 specifies that a path of mailcap files should be searched.
* joy. They say
* $HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap, etc
- * and overriden by the MAILCAPS environment variable, and, just to be nice,
+ * and overridden by the MAILCAPS environment variable, and, just to be nice,
* we'll make it specifiable in .muttrc
*/
if (!curr || !*curr)