Minor fix to compiling with gcc and gcc related warning
[wordblah.git] / wordblah.h
index c641abc..13874dc 100644 (file)
@@ -133,7 +133,7 @@ bool verify_solution_password (Puzzle *p, const char* password)
        unsigned int len;
        digest_message ((const unsigned char *)password, strlen(password),
                                                &hashed_sol_password, &len);
-       char hashed_hex_pwd[256] = { (char) NULL };
+       char hashed_hex_pwd[256] = { '\0' };
        encode_binary (hashed_hex_pwd, hashed_sol_password, len);
        
        if (strcmp (p->hashed_solution_password, hashed_hex_pwd) == 0)
@@ -155,7 +155,7 @@ bool verify_master_password (Puzzle *p, const char* password)
        unsigned int len;
        digest_message ((const unsigned char *)password, strlen(password),
                                                &hashed_mas_password, &len);
-       char hashed_hex_pwd[256] = { (char) NULL };
+       char hashed_hex_pwd[256] = { '\0' };
        encode_binary (hashed_hex_pwd, hashed_mas_password, len);
        
        if (strcmp (p->hashed_master_password, hashed_hex_pwd) == 0)