]> diplodocus.org Git - nmh/blobdiff - sbr/encode_rfc2047.c
new.c: Order two return statements to match comment.
[nmh] / sbr / encode_rfc2047.c
index 41fe786561271305ed57924b022ed54ce90f0a52..0ded2e932cfa88fae443df7c9a96c1aa80307a0e 100644 (file)
@@ -1,4 +1,4 @@
-/* Routines to encode message headers using RFC 2047-encoding.
+/* encode_rfc2047.c -- encode message headers using RFC 2047 encoding.
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,6 +9,8 @@
 #include <h/mhparse.h>
 #include <h/addrsbr.h>
 #include <h/utils.h>
 #include <h/mhparse.h>
 #include <h/addrsbr.h>
 #include <h/utils.h>
+#include "base64.h"
+#include "unquote.h"
 
 /*
  * List of headers that contain addresses and as a result require special
 
 /*
  * List of headers that contain addresses and as a result require special
@@ -736,7 +738,7 @@ do_reformat:
 
        if (groupflag && ! mn->m_ingrp) {
            output = add(";", output);
 
        if (groupflag && ! mn->m_ingrp) {
            output = add(";", output);
-           column += 1;
+           column++;
        }
 
        groupflag = mn->m_ingrp;
        }
 
        groupflag = mn->m_ingrp;
@@ -797,8 +799,8 @@ do_reformat:
     output = NULL;
 
 out:
     output = NULL;
 
 out:
-    mh_xfree(tmpbuf);
-    mh_xfree(output);
+    free(tmpbuf);
+    free(output);
 
     return errflag > 0;
 }
 
     return errflag > 0;
 }