From: Robert Spalek Date: Tue, 15 Jun 2004 09:36:38 +0000 (+0000) Subject: oops, one missing volatile :-) X-Git-Tag: holmes-import~1045 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f830d022a4058bf30fc414c82fc5cff3f0484e48;p=libucw.git oops, one missing volatile :-) --- diff --git a/lib/lizard-safe.c b/lib/lizard-safe.c index fb45f8bf..fc4b228f 100644 --- a/lib/lizard-safe.c +++ b/lib/lizard-safe.c @@ -55,7 +55,7 @@ lizard_decompress_safe(byte *in, struct lizard_buffer *buf, uns expected_length) * is caught in the case of buffer-overflow. The function is not re-entrant * because of a static longjmp handler. */ { - uns lock_offset = ALIGN(expected_length, PAGE_SIZE); + volatile uns lock_offset = ALIGN(expected_length, PAGE_SIZE); if (lock_offset + PAGE_SIZE > buf->len) { errno = EFBIG;