summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7eecb2d)
At Ralph's suggestion. The goal was to get rid of a warning from
gcc -Wformat-truncation, but the code ends up being cleaner as well.
char *dmsg = NULL, *digest = NULL, *ed = NULL;
char *file = NULL, *filter = NULL, *folder = NULL, *fwdmsg = NULL;
char *from = NULL, *to = NULL, *cc = NULL, *subject = NULL, *fcc = NULL;
char *dmsg = NULL, *digest = NULL, *ed = NULL;
char *file = NULL, *filter = NULL, *folder = NULL, *fwdmsg = NULL;
char *from = NULL, *to = NULL, *cc = NULL, *subject = NULL, *fcc = NULL;
- char *form = NULL, buf[BUFSIZ], value[10];
+ char *form = NULL, buf[BUFSIZ];
char **argp, **arguments;
struct stat st;
struct msgs_array msgs = { 0, 0, NULL };
char **argp, **arguments;
struct stat st;
struct msgs_array msgs = { 0, 0, NULL };
if (digest) {
snprintf (buf, sizeof(buf), IFORMAT, digest);
if (digest) {
snprintf (buf, sizeof(buf), IFORMAT, digest);
- snprintf (value, sizeof(value), "%d", issue);
- context_replace (buf, mh_xstrdup(value));
+ context_replace (buf, mh_xstrdup(m_name(issue)));
snprintf (buf, sizeof(buf), VFORMAT, digest);
snprintf (buf, sizeof(buf), VFORMAT, digest);
- snprintf (value, sizeof(value), "%d", volume);
- context_replace (buf, mh_xstrdup(value));
+ context_replace (buf, mh_xstrdup(m_name(volume)));
}
context_replace (pfolder, folder); /* update current folder */
}
context_replace (pfolder, folder); /* update current folder */