summaryrefslogtreecommitdiff
path: root/security/mhash/files/patch-lib-whirlpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/mhash/files/patch-lib-whirlpool.c')
-rw-r--r--security/mhash/files/patch-lib-whirlpool.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/security/mhash/files/patch-lib-whirlpool.c b/security/mhash/files/patch-lib-whirlpool.c
new file mode 100644
index 000000000000..9d5c5f566ab0
--- /dev/null
+++ b/security/mhash/files/patch-lib-whirlpool.c
@@ -0,0 +1,18 @@
+diff -urN -x .svn ../../branches/vendor/mhash/lib/whirlpool.c ./lib/whirlpool.c
+--- ../../branches/vendor/mhash/lib/whirlpool.c 2008-01-16 14:26:51.000000000 +0200
++++ ./lib/whirlpool.c 2008-01-16 15:13:06.000000000 +0200
+@@ -883,10 +883,10 @@
+ * Increment the block counter by step
+ */
+ #define INCCTR(cnt,step) do { \
+- if ((cnt[3] += (step)) < (step)) \
+- if (!(++cnt[2])) \
+- if (!(++cnt[1])) \
+- if (!(++cnt[0])); \
++ if (((cnt)[3] += (step)) < (step)) \
++ if (!(++(cnt)[2])) \
++ if (!(++(cnt)[1])) \
++ if (!(++(cnt)[0])); \
+ } while(0);
+
+