]> git.marmaro.de Git - mmh/blobdiff - sbr/m_convert.c
Move #include from h/mh.h to source files
[mmh] / sbr / m_convert.c
index 734bdb58f6cdd53e631b2cb8bab0f1650d5dc851..7f2a7a8e2ae010c9758f455253b698ac1656c0a8 100644 (file)
@@ -10,6 +10,7 @@
 /* FIXME: This code needs rework! Rewrite as a parser? */
 
 #include <h/mh.h>
+#include <ctype.h>
 
 /*
 ** error codes for sequence
@@ -272,7 +273,7 @@ m_conv(struct msgs *mp, char *str, int call)
                        return BADNUM;
        }
 
-       for (bp = buf; isalpha(*cp) && (bp - buf < sizeof(buf) - 1); ) {
+       for (bp = buf; isalpha(*cp) && (bp - buf < (int)sizeof(buf) - 1); ) {
                *bp++ = *cp++;
        }
        *bp++ = '\0';