replace SKIPWS with a proper inline func with the right API.
[apps/madmutt.git] / send.c
diff --git a/send.c b/send.c
index c827e7e..dfed65c 100644 (file)
--- 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