projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nico Golde:
[apps/madmutt.git]
/
commands.c
diff --git
a/commands.c
b/commands.c
index
5626cb8
..
cc157fc
100644
(file)
--- a/
commands.c
+++ b/
commands.c
@@
-36,6
+36,10
@@
#include "buffy.h"
#endif
#include "buffy.h"
#endif
+#include "lib/mem.h"
+#include "lib/intl.h"
+#include "lib/str.h"
+
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
@@
-873,8
+877,8
@@
int mutt_update_list_file (char *filename, char *section, char *key,
done++;
break;
}
done++;
break;
}
- else if (key && !strncmp (buf, key, strlen (key)) &&
- (!*key || buf[strlen (key)] == ' ')) {
+ else if (key && !strncmp (buf, key,
mutt_
strlen (key)) &&
+ (!*key || buf[
mutt_
strlen (key)] == ' ')) {
c = buf;
ext = 0;
while (*c && (*c != '\r') && (*c != '\n'))
c = buf;
ext = 0;
while (*c && (*c != '\r') && (*c != '\n'))
@@
-943,7
+947,7
@@
void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp)
size_t l;
for (p = b->parameter; p; p = p->next) {
size_t l;
for (p = b->parameter; p; p = p->next) {
- l = strlen (buf);
+ l =
mutt_
strlen (buf);
rfc822_cat (tmp, sizeof (tmp), p->value, MimeSpecials);
snprintf (buf + l, sizeof (buf) - l, "; %s=%s", p->attribute, tmp);
rfc822_cat (tmp, sizeof (tmp), p->value, MimeSpecials);
snprintf (buf + l, sizeof (buf) - l, "; %s=%s", p->attribute, tmp);