X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=send.c;h=dfed65cc197df30dd1ebcb0551ac2effed2aedef;hp=c827e7e300216c5ac0ff0cd2d510472d02ddec3f;hb=81884ccb464c69a8dba9de1b97af261a8a02b2c7;hpb=238b70e39b78f585c586bd51aef41988b3cc73d1 diff --git a/send.c b/send.c index c827e7e..dfed65c 100644 --- a/send.c +++ b/send.c @@ -265,8 +265,7 @@ static int edit_envelope (ENVELOPE * en, int flags) buf[0] = 0; for (; uh; uh = uh->next) { if (ascii_strncasecmp ("subject:", uh->data, 8) == 0) { - p = uh->data + 8; - SKIPWS (p); + p = vskipspaces(uh->data + 8); m_strcpy(buf, sizeof(buf), p); } } @@ -303,10 +302,9 @@ static int edit_envelope (ENVELOPE * en, int flags) } #ifdef USE_NNTP -char *nntp_get_header (const char *s) +char *nntp_get_header(const char *s) { - SKIPWS (s); - return m_strdup(s); + return m_strdup(skipspaces(s)); } #endif