From 912fc8ebf5b77692efc450e89545420e5b3e6ad5 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 8 May 2011 19:51:49 +0000 Subject: [PATCH] fix another warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11131 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_edict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prvm_edict.c b/prvm_edict.c index 7b70d223..0a52aef9 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -2150,7 +2150,7 @@ void PRVM_LoadProgs (const char * filename, int numrequiredfunc, const char **re if (LittleLong(dprograms->ofs_strings) + prog->progs_numstrings >= (int)filesize) PRVM_ERROR ("%s: %s strings go past end of file", PRVM_NAME, filename); prog->strings = (char *)Mem_Alloc(prog->progs_mempool, prog->progs_numstrings); - memcpy(prog->strings, (char *)dprograms + LittleLong(dprograms->ofs_strings), prog->progs_numstrings); + memcpy(prog->strings, instrings, prog->progs_numstrings); prog->stringssize = prog->progs_numstrings; prog->numknownstrings = 0; -- 2.39.2