From: havoc Date: Sun, 8 May 2011 19:51:49 +0000 (+0000) Subject: fix another warning X-Git-Tag: xonotic-v0.5.0~188 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5cb172d4b2c013424f179cfa5f8881729c0af2d0;p=xonotic%2Fdarkplaces.git fix another warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11131 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=912fc8ebf5b77692efc450e89545420e5b3e6ad5 --- 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;