- char longTest[] = "abcdefghijklmnopqrstuvwxyz 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- EncryptString(longTest, longTest, sizeof(longTest), &ctx);
+ std::string source("abcdefghijklmnopqrstuvwxyz 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ");
+ char longTest[source.length() + 8];
+ EncryptString(longTest, source.c_str(), source.length() + 1, &ctx);