X-Git-Url: https://harishankar.org/repos/?p=wordblah.git;a=blobdiff_plain;f=wordblah.h;fp=wordblah.h;h=13874dcd67e54244ee367f32e9d4fef15ef00128;hp=c641abcd604c40bcd4ee46690b4479641d99cd28;hb=4dc5adcef4e6652b07b00087a24fc3d1305a6f81;hpb=1b996fa8e3b99892ef3c3cb51ab2759e797ae286 diff --git a/wordblah.h b/wordblah.h index c641abc..13874dc 100644 --- a/wordblah.h +++ b/wordblah.h @@ -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)