X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=from.c;h=64686fc9eb642343f90dc55cc7aabb6db52b46c1;hp=87c44a05bbbc02029f6a13df697e4f1b6ca7c0ad;hb=197d39c13fb4cc5e316ecf5b2dcf981d7d71c512;hpb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c diff --git a/from.c b/from.c index 87c44a0..64686fc 100644 --- a/from.c +++ b/from.c @@ -22,12 +22,12 @@ #include #include -static const char *next_word (const char *s) +static const char *next_word(const char *s) { - while (*s && !ISSPACE (*s)) - s++; - SKIPWS (s); - return s; + while (*s && !ISSPACE(*s)) + s++; + s = skipspaces(s); + return s; } int mutt_check_month (const char *s) @@ -102,8 +102,7 @@ int is_from (const char *s, char *path, size_t pathlen, time_t * tp) debug_print (3, ("got return path: %s\n", path)); } - s = p + 1; - SKIPWS (s); + s = vskipspaces(p + 1); if (!*s) return 0;