aboutsummaryrefslogtreecommitdiffstats
path: root/src/patches/flagstore2.diff
blob: 2f66593c98a176659727e28181262150ac8e0fad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/service/src/util.c
+++ b/service/src/util.c
@@ -58,7 +58,7 @@ mhash(const char *str, int len)
 
 	srand(v);
 	for (bp = buf, i = 0; i < MHASHLEN / 2; i++)
-		bp += sprintf(bp, "%02x", str[i % len] ^ (rand() % 256));
+		bp += sprintf(bp, "%02x", (unsigned char) str[i % len] ^ (rand() % 256));
 
 	return buf;
 }