dtdspmsg: Warning prevention
authorPeter Howkins <flibble@users.sourceforge.net>
Thu, 30 Aug 2012 17:14:15 +0000 (18:14 +0100)
committerPeter Howkins <flibble@users.sourceforge.net>
Thu, 30 Aug 2012 17:14:15 +0000 (18:14 +0100)
cde/programs/dtdspmsg/dtdspmsg.c

index bd6602dc8eb64b84314d0e4d302de17db61cb343..88c420ed208f5afe4bba9f9f28fb7f0455b50edd 100644 (file)
@@ -56,6 +56,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <locale.h>
 #include "msgfac_msg.h"
 
@@ -168,7 +169,7 @@ int main(int argc,char *argv[])
                                case 'x':
                                        {
                                        char *pesc = p;
-                                       int hex, hexlen = 0;
+                                       unsigned int hex, hexlen = 0;
 
                                        while (isxdigit(*++pesc))
                                                hexlen++;