Juan Lang : rsaenh/tests: Fix length of copied buffer.

Alexandre Julliard julliard at winehq.org
Thu Nov 12 10:22:08 CST 2009


Module: wine
Branch: master
Commit: 9369dfbab6554abed3bc3ad89258dfcd28561c8e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9369dfbab6554abed3bc3ad89258dfcd28561c8e

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Nov 11 13:38:17 2009 -0800

rsaenh/tests: Fix length of copied buffer.

---

 dlls/rsaenh/tests/rsaenh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 4a69483..e59ad95 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -459,7 +459,7 @@ static void test_block_cipher_modes(void)
     result = derive_key(CALG_RC2, &hKey, 40);
     if (!result) return;
 
-    memcpy(abData, plain, sizeof(abData));
+    memcpy(abData, plain, sizeof(plain));
 
     dwMode = CRYPT_MODE_ECB;
     result = CryptSetKeyParam(hKey, KP_MODE, (BYTE*)&dwMode, 0);




More information about the wine-cvs mailing list