From: Rudolf Polzer Date: Tue, 25 Oct 2011 12:31:18 +0000 (+0200) Subject: oops, another thread bug X-Git-Tag: v0.5~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a6ab1859c4f4ddce4630d19fd358437b1dad6330;p=xonotic%2Fd0_blind_id.git oops, another thread bug --- diff --git a/d0_blind_id.c b/d0_blind_id.c index 1920cdc..2b48e59 100644 --- a/d0_blind_id.c +++ b/d0_blind_id.c @@ -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; }