aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/patches/flagstore2.diff
diff options
context:
space:
mode:
Diffstat (limited to 'service/src/patches/flagstore2.diff')
-rw-r--r--service/src/patches/flagstore2.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/service/src/patches/flagstore2.diff b/service/src/patches/flagstore2.diff
new file mode 100644
index 0000000..ef6f524
--- /dev/null
+++ b/service/src/patches/flagstore2.diff
@@ -0,0 +1,13 @@
+diff --git a/service/src/util.c b/service/src/util.c
+index 31a2628..bf272db 100644
+--- 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;
+ }