replace SKIPWS with a proper inline func with the right API.
[apps/madmutt.git] / headers.c
index abd9b0f..a3476a8 100644 (file)
--- a/headers.c
+++ b/headers.c
@@ -129,8 +129,7 @@ void mutt_edit_headers (const char *editor,
      * message based upon this one.
      */
     if (fcc && ascii_strncasecmp ("fcc:", cur->data, 4) == 0) {
-      p = cur->data + 4;
-      SKIPWS (p);
+      p = vskipspaces(cur->data + 4);
       if (*p) {
         m_strcpy(fcc, fcclen, p);
         mutt_pretty_mailbox (fcc);
@@ -142,12 +141,11 @@ void mutt_edit_headers (const char *editor,
       BODY *parts;
       char *q;
 
-      p = cur->data + 7;
-      SKIPWS (p);
+      p = vskipspaces(cur->data + 7);
       if (*p) {
         if ((q = strpbrk (p, " \t"))) {
-          str_substrcpy (path, p, q, sizeof (path));
-          SKIPWS (q);
+          str_substrcpy(path, p, q, sizeof(path));
+          q = vskipspaces(q);
         }
         else
           m_strcpy(path, sizeof(path), p);