From f5527bb937e04c95cf46029fb0a9f46dc0356d1d Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Tue, 11 Feb 2020 12:23:51 +0100 Subject: [PATCH] Fix mangle_dupeword_times() in OpenCL/inc_rp.cl --- OpenCL/inc_rp.cl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenCL/inc_rp.cl b/OpenCL/inc_rp.cl index 5790c1a33..1d17b365e 100644 --- a/OpenCL/inc_rp.cl +++ b/OpenCL/inc_rp.cl @@ -298,15 +298,13 @@ DECLSPEC int mangle_dupeword_times (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const if (out_len >= RP_PASSWORD_SIZE) return (len); - u8 *out = buf + len; - int out_pos = len; for (int t = 0; t < p0; t++) { for (int i = 0; i < len; i++) { - out[out_pos] = buf[i]; + buf[out_pos] = buf[i]; out_pos++; }