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: http://de.git.xonotic.org/?p=xonotic%2Fd0_blind_id.git;a=commitdiff_plain;h=a6ab1859c4f4ddce4630d19fd358437b1dad6330 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; }