]> diplodocus.org Git - nmh/blobdiff - sbr/escape_addresses.c
configure.ac: Enable assert(3) by default.
[nmh] / sbr / escape_addresses.c
index 43bf1a2974f5484837ee6df5de71c1577802f85b..a484a11ed2a0667aa112fea2a0bb217860f761e5 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * escape_addresses.c -- Escape address components, hopefully per RFC 5322.
+/* escape_addresses.c -- Escape address components, hopefully per RFC 5322.
  *
  * This code is Copyright (c) 2012, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -43,7 +42,7 @@ escape_component (char *name, size_t namesize, char *chars_to_escape) {
     if (strpbrk(name, chars_to_escape)) {
         char *destp, *srcp;
         /* Maximum space requirement would be if each character had
-           to be escaped, plus enclosing double quotes, plus null termintor.
+           to be escaped, plus enclosing double quotes, plus NUL terminator.
            E.g., 2 characters, "", would require 7, "\"\""0, where that 0
            is '\0'. */
         char *tmp = mh_xmalloc (2*strlen(name) + 3);