Fix the tests to work with EBCDIC
[openssl.git] / test / mdc2test.c
index 2177a0ef6d1561e605b2811c699cecd3da3c297c..06456a87a18ca7c064372f72713e1f5d3982a0c5 100644 (file)
@@ -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));