Fix warning in apps/ca.c
authorDr. Stephen Henson <steve@openssl.org>
Sun, 14 Jan 2001 13:58:49 +0000 (13:58 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 14 Jan 2001 13:58:49 +0000 (13:58 +0000)
apps/ca.c

index 2ac0db7..2cf1697 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -2448,7 +2448,7 @@ err:
 
 static int get_certificate_status(const char *serial, TXT_DB *db)
        {
-       unsigned char *row[DB_NUMBER],**rrow;
+       char *row[DB_NUMBER],**rrow;
        int ok=-1,i;
 
        /* Free Resources */
@@ -2481,7 +2481,7 @@ static int get_certificate_status(const char *serial, TXT_DB *db)
                        
        /* Make it Upper Case */
        for (i=0; row[DB_serial][i] != '\0'; i++)
-               row[DB_serial][i] = toupper(row[DB_serial][i]);
+               row[DB_serial][i] = toupper((unsigned char)row[DB_serial][i]);
 
        ok=1;