X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffer.c;h=7f06132282224f29639b1f8473840afcc44da8fa;hp=bfa0dd82b9e74c3202bae2053a6b76462fbc100b;hb=ecaab35b973fbceb58b5ed174971c82762cc0199;hpb=617e7d83d14e14e6a520a48e75437211b16c8834 diff --git a/buffer.c b/buffer.c index bfa0dd8..7f06132 100644 --- a/buffer.c +++ b/buffer.c @@ -15,10 +15,10 @@ #include #include +#include #include "buffer.h" -#include "lib/str.h" #include "lib/debug.h" /* @@ -56,15 +56,15 @@ BUFFER *mutt_buffer_from (BUFFER * b, const char *seed) return NULL; b = mutt_buffer_init (b); - b->data = str_dup (seed); - b->dsize = str_len (seed); + b->data = m_strdup(seed); + b->dsize = m_strlen(seed); b->dptr = (char *) b->data + b->dsize; return b; } void mutt_buffer_addstr (BUFFER * buf, const char *s) { - mutt_buffer_add (buf, s, str_len (s)); + mutt_buffer_add (buf, s, m_strlen(s)); } void mutt_buffer_addch (BUFFER * buf, char c) @@ -227,8 +227,8 @@ int mutt_extract_token (BUFFER * dest, BUFFER * tok, int flags) p_delete(&expn.data); } else if (expn.data) { - expnlen = str_len (expn.data); - tok->dsize = expnlen + str_len (tok->dptr) + 1; + expnlen = m_strlen(expn.data); + tok->dsize = expnlen + m_strlen(tok->dptr) + 1; ptr = xmalloc(tok->dsize); memcpy (ptr, expn.data, expnlen); strcpy (ptr + expnlen, tok->dptr); /* __STRCPY_CHECKED__ */