aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/libmenu/des.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/cmenu/libmenu/des.c')
-rw-r--r--com32/cmenu/libmenu/des.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/com32/cmenu/libmenu/des.c b/com32/cmenu/libmenu/des.c
index a058df89..37148b24 100644
--- a/com32/cmenu/libmenu/des.c
+++ b/com32/cmenu/libmenu/des.c
@@ -912,10 +912,9 @@ static int des_cipher(const char *in, char *out, my_u_int32_t salt, int count)
void setkey(const char *key)
{
int i, j;
- my_u_int32_t packed_keys[2];
- my_u_char_t *p;
+ char *p, packed_keys[8];
- p = (my_u_char_t *) packed_keys;
+ p = packed_keys;
for (i = 0; i < 8; i++) {
p[i] = 0;
@@ -935,7 +934,7 @@ void encrypt(char *block, int flag)
des_init();
setup_salt(0L);
- p = block;
+ p = (my_u_char_t *)block;
for (i = 0; i < 2; i++) {
io[i] = 0L;
for (j = 0; j < 32; j++)