prc: fix compilation issue on MSVC

This commit is contained in:
rdb 2019-05-12 20:57:18 +02:00
parent ece56eb0a7
commit 2e9bd0f241

View File

@ -22,7 +22,7 @@
*/
bool IDecryptStream::
read_magic(const char *magic, size_t size) {
char this_magic[size];
char *this_magic = (char *)alloca(size);
read(this_magic, size);
if (!fail() && gcount() == size && memcmp(this_magic, magic, size) == 0) {