]> git.rm.cloudns.org Git - xonotic/d0_blind_id.git/commitdiff
oops, another thread bug
authorRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 12:31:18 +0000 (14:31 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 12:31:18 +0000 (14:31 +0200)
d0_blind_id.c

index 1920cdc1af9ff4c3e50d8df3cdcb074fc7034db9..2b48e5959ac64336e3d0ee750d9f2896fbd2ce3a 100644 (file)
@@ -47,7 +47,7 @@
 #define SHA_DIGESTSIZE 32
 const char *sha(const unsigned char *in, size_t len)
 {
-       char h[32];
+       static __thread char h[32];
        d0_blind_id_util_sha256(h, (const char *) in, len);
        return h;
 }