From b14c6d581c76ba1f9991d865941fcbcaded52e0b Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 19 Sep 2011 02:10:17 +0000 Subject: [PATCH] Use correct variable for getting buffer length, reported by Ensiform. --- code/qcommon/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 1c572314..4b17cb8a 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -1398,7 +1398,7 @@ vmInterpret_t FS_FindVM(void **startSearch, char *found, int foundlen, const cha if(enableDll) Com_sprintf(dllName, sizeof(dllName), "%s" ARCH_STRING DLL_EXT, name); - Com_sprintf(qvmName, sizeof(dllName), "vm/%s.qvm", name); + Com_sprintf(qvmName, sizeof(qvmName), "vm/%s.qvm", name); lastSearch = *startSearch; if(*startSearch == NULL)