X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-lib%2Fbuffer.c;h=6feb95849f139774bf98f948f416783bfe6bb3c1;hb=2480626d883af3c291e94b90e1edc1ca40fca1c4;hp=6b46380ce61b7c26b2461b4c9f81990a6e30866c;hpb=c8bf978fc5c4f6c793620a515fa2456a3fa9eb13;p=apps%2Fmadmutt.git diff --git a/lib-lib/buffer.c b/lib-lib/buffer.c index 6b46380..6feb958 100644 --- a/lib-lib/buffer.c +++ b/lib-lib/buffer.c @@ -35,8 +35,7 @@ #include "ascii.h" #include "buffer.h" #include "file.h" - -#include "lib/debug.h" +#include "debug.h" #include "mutt.h" @@ -259,7 +258,7 @@ int mutt_extract_token(BUFFER *dest, BUFFER *tok, int flags) if (*tok->dptr == '{') { tok->dptr++; if ((pc = strchr (tok->dptr, '}'))) { - var = str_substrdup (tok->dptr, pc); + var = p_dupstr(tok->dptr, pc - tok->dptr); tok->dptr = pc + 1; } } else {