cast Mem_Allocs in FS_Init_SelfPack
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 Feb 2010 20:52:44 +0000 (20:52 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 Feb 2010 20:52:44 +0000 (20:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10036 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index c9e6d56..538cf43 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1628,13 +1628,13 @@ void FS_Init_SelfPack (void)
                                        com_argv[1] = NULL;
                                        com_argc = 1;
                                }
-                               new_argv = Mem_Alloc(fs_mempool, sizeof(*com_argv) * (com_argc + args_left + 1));
+                               new_argv = (const char **)Mem_Alloc(fs_mempool, sizeof(*com_argv) * (com_argc + args_left + 1));
                                p = buf;
                                while(COM_ParseToken_Console(&p))
                                {
                                        if(i >= args_left)
                                                break;
-                                       q = Mem_Alloc(fs_mempool, strlen(com_token) + 1);
+                                       q = (char *)Mem_Alloc(fs_mempool, strlen(com_token) + 1);
                                        strlcpy(q, com_token, strlen(com_token) + 1);
                                        new_argv[i+1] = q;
                                        ++i;