Update .cvsignore
[openssl.git] / test / dummytest.c
index f98f003ef98e0c57e190b13294bc6198c41beb24..fc105712d3844e9d7d61981e819e28dccdf389a7 100644 (file)
@@ -2,13 +2,13 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <openssl/crypto.h>
 #include <openssl/e_os2.h>
 #include <openssl/buffer.h>
-#include <openssl/crypto.h>
 
 int main(int argc, char *argv[])
        {
-       char *p, *q, *program;
+       char *p, *q = 0, *program;
 
        p = strrchr(argv[0], '/');
        if (!p) p = strrchr(argv[0], '\\');
@@ -34,7 +34,8 @@ int main(int argc, char *argv[])
                }
 
        for(p = program; *p; p++)
-               if (islower(*p)) *p = toupper(*p);
+               if (islower((unsigned char)(*p)))
+                       *p = toupper((unsigned char)(*p));
 
        q = strstr(program, "TEST");
        if (q > p && q[-1] == '_') q--;