gcc compilation fix

This commit is contained in:
Enno Rehling 2016-01-14 17:28:20 +01:00
parent 68df8d53b8
commit 09a0e806bc
2 changed files with 2 additions and 2 deletions

2
crypto

@ -1 +1 @@
Subproject commit 0ce0c5d6e1963b31863216d24d2cc5594f9a8893 Subproject commit f9ecf5a10983adfc7bd1bee8ac1f9a3abf1d41d9

View File

@ -34,7 +34,7 @@ char *password_gensalt(void) {
int buflen = SALTLEN; int buflen = SALTLEN;
while (buflen) { while (buflen) {
unsigned long ul = genrand_int32(); unsigned long ul = genrand_int32();
b64_from_24bit(ul & 0xFF, (ul>>8)&0xff, (ul>>16)&0xFF, 4); b64_from_24bit((char)(ul & 0xFF), (char)((ul>>8)&0xff), (char)((ul>>16)&0xFF), 4);
} }
salt[SALTLEN] = 0; salt[SALTLEN] = 0;
return salt; return salt;