projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace SKIPWS with a proper inline func with the right API.
[apps/madmutt.git]
/
sendlib.c
diff --git
a/sendlib.c
b/sendlib.c
index
1daf044
..
7ec942c
100644
(file)
--- a/
sendlib.c
+++ b/
sendlib.c
@@
-924,14
+924,13
@@
int mutt_lookup_mime_type (BODY * att, const char *path)
*p = 0;
/* remove any leading space. */
*p = 0;
/* remove any leading space. */
- ct = buf;
- SKIPWS (ct);
+ ct = vskipspaces(buf);
/* position on the next field in this line */
if ((p = strpbrk (ct, " \t")) == NULL)
continue;
*p++ = 0;
/* position on the next field in this line */
if ((p = strpbrk (ct, " \t")) == NULL)
continue;
*p++ = 0;
-
SKIPWS
(p);
+
p = vskipspaces
(p);
/* cycle through the file extensions */
while ((p = strtok (p, " \t\n"))) {
/* cycle through the file extensions */
while ((p = strtok (p, " \t\n"))) {
@@
-1596,8
+1595,7
@@
int mutt_write_rfc822_header (FILE * fp, ENVELOPE * env, BODY * attach,
/* Add any user defined headers */
for (; tmp; tmp = tmp->next) {
if ((p = strchr (tmp->data, ':'))) {
/* Add any user defined headers */
for (; tmp; tmp = tmp->next) {
if ((p = strchr (tmp->data, ':'))) {
- p++;
- SKIPWS (p);
+ p = vskipspaces(p + 1);
if (!*p)
continue; /* don't emit empty fields. */
if (!*p)
continue; /* don't emit empty fields. */
@@
-1642,8
+1640,7
@@
static void encode_headers (LIST * h)
continue;
i = p - h->data;
continue;
i = p - h->data;
- ++p;
- SKIPWS (p);
+ p = vskipspaces(p + 1);
tmp = m_strdup(p);
if (!tmp)
tmp = m_strdup(p);
if (!tmp)