From 2e9bd0f2415c44702d6300d8f84d554242ffcae3 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 12 May 2019 20:57:18 +0200 Subject: [PATCH] prc: fix compilation issue on MSVC --- dtool/src/prc/encryptStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/prc/encryptStream.cxx b/dtool/src/prc/encryptStream.cxx index 380296dd8c..90e9e33858 100644 --- a/dtool/src/prc/encryptStream.cxx +++ b/dtool/src/prc/encryptStream.cxx @@ -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) {