mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
prc: fix compilation issue on MSVC
This commit is contained in:
parent
ece56eb0a7
commit
2e9bd0f241
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user