X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=state.c;h=86a75f5bbdf1f9a51178ca136b5b3c0c677f2b46;hp=f5642af01700626ebc2af8c01adeb0134cf8b136;hb=35f4e8cefa22d98782a720e4df428a1ce3be2237;hpb=56025510c87ad388a257fcbd8b369b0edcf97c34 diff --git a/state.c b/state.c index f5642af..86a75f5 100644 --- a/state.c +++ b/state.c @@ -14,11 +14,10 @@ #include #include -#include +#include #include "mutt.h" #include "state.h" -#include "rfc3676.h" static void state_prefix_put (const char *d, ssize_t dlen, STATE * s) { @@ -78,9 +77,6 @@ void state_prefix_putc (char c, STATE * s) char buf[2 * SHORT_STRING]; int j = 0, offset = 0; regmatch_t pmatch[1]; -#ifdef DEBUG - unsigned char save = '\0'; -#endif state_reset_prefix (s); while (regexec @@ -102,15 +98,6 @@ void state_prefix_putc (char c, STATE * s) else snprintf (buf, sizeof (buf), "%s%s", NONULL (s->prefix), Quotebuf); -#ifdef DEBUG - if (m_strlen(buf) >= 2) { - save = buf[m_strlen(buf) - 1]; - buf[m_strlen(buf) - 1] = '\0'; - debug_print (2, ("buf = '%s'\n", buf)); - buf[m_strlen(buf)] = save; - } -#endif - state_puts (buf, s); } }