summaryrefslogtreecommitdiffstats
path: root/test/mdc2test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-29 10:56:20 +0100
committerMatt Caswell <matt@openssl.org>2016-04-29 15:04:15 +0100
commit97a982e2eee2e04e8e41ae12665af417315a0f23 (patch)
treeb51cc91f14d545cdc80ab64ad202457a5f181e44 /test/mdc2test.c
parent4cd5c3f4eef81c791a5041dc17ec27aa08540e42 (diff)
Fix the tests to work with EBCDIC
Most of the tests already pass with EBCIDC but a few were trying to write into read only memory. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'test/mdc2test.c')
-rw-r--r--test/mdc2test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mdc2test.c b/test/mdc2test.c
index 2177a0ef6d..06456a87a1 100644
--- a/test/mdc2test.c
+++ b/test/mdc2test.c
@@ -95,7 +95,7 @@ int main(int argc, char *argv[])
unsigned char md[MDC2_DIGEST_LENGTH];
int i;
EVP_MD_CTX *c;
- static char *text = "Now is the time for all ";
+ static char text[30] = "Now is the time for all ";
# ifdef CHARSET_EBCDIC
ebcdic2ascii(text, text, strlen(text));