From b7204b7004f2143719069a5be1cbe4d9ab88d231 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 29 Jul 2019 06:32:37 +0000 Subject: [PATCH] Fix some more stuff. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5497 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/net_wins.c | 2 +- engine/common/qvm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/net_wins.c b/engine/common/net_wins.c index e552b04f3..71f58352f 100644 --- a/engine/common/net_wins.c +++ b/engine/common/net_wins.c @@ -624,7 +624,7 @@ void NET_AdrToStringResolve (netadr_t *adr, void (*resolved)(void *ctx, void *da #else void NET_AdrToStringResolve (netadr_t *adr, void (*resolved)(void *ctx, void *data, size_t a, size_t b), void *ctx, size_t a, size_t b) { - char adrstring[NI_MAXHOST]; + char adrstring[512]; NET_BaseAdrToString(adrstring, countof(adrstring), adr); resolved(ctx, Z_StrDup(adrstring), a, b); } diff --git a/engine/common/qvm.c b/engine/common/qvm.c index 93905eb90..592893373 100644 --- a/engine/common/qvm.c +++ b/engine/common/qvm.c @@ -129,7 +129,7 @@ qboolean QVM_LoadDLL(vm_t *vm, const char *name, qboolean binroot, void **vmMain } #ifdef ANDROID - if (!hVM && FS_NativePath(dllname_anycpu, FS_BINARYPATH, fname, sizeof(fname))) + if (!hVM && FS_NativePath(va("%s" ARCH_DL_POSTFIX, name), FS_BINARYPATH, fname, sizeof(fname))) hVM = Sys_LoadLibrary(fname, funcs); #else