projects
/
wordblah.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fix to compiling with gcc and gcc related warning
[wordblah.git]
/
wordblah.h
diff --git
a/wordblah.h
b/wordblah.h
index
c641abc
..
13874dc
100644
(file)
--- 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);
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)
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);
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)
encode_binary (hashed_hex_pwd, hashed_mas_password, len);
if (strcmp (p->hashed_master_password, hashed_hex_pwd) == 0)