X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=lib-lib%2Fbuffer.c;h=6b46380ce61b7c26b2461b4c9f81990a6e30866c;hb=b68ee108ca7aed9fd3fdfe5eefc1cf284a32fb17;hp=2abfa391b0d14648fc91276bcbf682b78752195e;hpb=21595f98b7c8132f99abb9fee60ecdce31fc980f;p=apps%2Fmadmutt.git diff --git a/lib-lib/buffer.c b/lib-lib/buffer.c index 2abfa39..6b46380 100644 --- a/lib-lib/buffer.c +++ b/lib-lib/buffer.c @@ -30,15 +30,16 @@ #include #include -#include -#include -#include -#include - -#include "mutt.h" +#include "mem.h" +#include "str.h" +#include "ascii.h" +#include "buffer.h" +#include "file.h" #include "lib/debug.h" +#include "mutt.h" + /* * Creates and initializes a BUFFER*. If passed an existing BUFFER*, * just initializes. Frees anything already in the buffer. @@ -111,7 +112,7 @@ int mutt_extract_token(BUFFER *dest, BUFFER *tok, int flags) /* reset the destination pointer to the beginning of the buffer */ dest->dptr = dest->data; - SKIPWS(tok->dptr); + tok->dptr = vskipspaces(tok->dptr); while ((ch = *tok->dptr)) { if (!qc) { if ((ISSPACE(ch) && !(flags & M_TOKEN_SPACE)) @@ -281,7 +282,7 @@ int mutt_extract_token(BUFFER *dest, BUFFER *tok, int flags) } } mutt_buffer_addch(dest, 0); /* terminate the string */ - SKIPWS(tok->dptr); + tok->dptr = vskipspaces(tok->dptr); return 0; }