Change the "offset too large" message to more generic wording
[openssl.git] / test / bftest.c
index 0639ec888d35854a3cdd5095c2db6dba64ef446c..5abb81d7c911f856c6d07d06c0d2e09dd578a4a8 100644 (file)
 #include <string.h>
 #include <stdlib.h>
 #include <openssl/opensslconf.h> /* To see if OPENSSL_NO_BF is defined */
-
 #include "testutil.h"
 
-#include <internal/nelem.h>
+#include "internal/nelem.h"
 
 #ifndef OPENSSL_NO_BF
 # include <openssl/blowfish.h>
@@ -357,7 +356,7 @@ static int test_bf_cbc(void)
     BF_set_key(&key, 16, cbc_key);
     memset(cbc_in, 0, sizeof(cbc_in));
     memset(cbc_out, 0, sizeof(cbc_out));
-    memcpy(iv, cbc_iv, sizeof iv);
+    memcpy(iv, cbc_iv, sizeof(iv));
     BF_cbc_encrypt((unsigned char *)cbc_data, cbc_out, len,
                    &key, iv, BF_ENCRYPT);
     if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32))