]> Pileus Git - ~andy/fetchmail/blobdiff - ucs/norm_charmap.c
Prepare 6.3.25 release.
[~andy/fetchmail] / ucs / norm_charmap.c
index 2905e226295b2ec20f6d526032297b17b9601868..dedad326a44a872f4f1b44fff9d518dd5d9bf80e 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include "config.h" /* import AC_C_CONST effects */
+#include "norm_charmap.h"
 
 #include <string.h>
 
@@ -40,7 +41,7 @@ static char buf[16];
 
 const char *norm_charmap(const char *name)
 {
-  char *p;
+  const char *p;
   
   if (!name)
     return name;
@@ -84,7 +85,7 @@ const char *norm_charmap(const char *name)
     p += 5;
     if (digit(*p)) {
       buf[9] = *p++;
-      if (digit(*p)) buf[10] = *p++;
+      if (digit(*p)) buf[10] = *p;
       return buf;
     }
   }
@@ -95,7 +96,7 @@ const char *norm_charmap(const char *name)
     p += 4;
     if (digit(*p)) {
       buf[10] = *p++;
-      if (digit(*p)) buf[11] = *p++;
+      if (digit(*p)) buf[11] = *p;
       return buf;
     }
   }