fix some warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 May 2005 01:59:56 +0000 (01:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 May 2005 01:59:56 +0000 (01:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5287 d7cf8633-e32d-0410-b094-e92efae38249

pr_edict.c
prvm_edict.c

index 8b1ef35..15db72d 100644 (file)
@@ -1814,7 +1814,7 @@ int PR_SetEngineString(const char *s)
                        pr_maxknownstrings += 128;
                        pr_knownstrings = PR_Alloc(pr_maxknownstrings * sizeof(char *));
                        if (pr_numknownstrings)
-                               memcpy(pr_knownstrings, oldstrings, pr_numknownstrings * sizeof(char *));
+                               memcpy((char **)pr_knownstrings, oldstrings, pr_numknownstrings * sizeof(char *));
                }
                pr_numknownstrings++;
        }
@@ -1838,7 +1838,7 @@ char *PR_AllocString(int bufferlength)
                        pr_maxknownstrings += 128;
                        pr_knownstrings = PR_Alloc(pr_maxknownstrings * sizeof(char *));
                        if (pr_numknownstrings)
-                               memcpy(pr_knownstrings, oldstrings, pr_numknownstrings * sizeof(char *));
+                               memcpy((char **)pr_knownstrings, oldstrings, pr_numknownstrings * sizeof(char *));
                }
                pr_numknownstrings++;
        }
index 818dba6..379b099 100644 (file)
@@ -1858,7 +1858,7 @@ int PRVM_SetEngineString(const char *s)
                        prog->maxknownstrings += 128;
                        prog->knownstrings = PRVM_Alloc(prog->maxknownstrings * sizeof(char *));
                        if (prog->numknownstrings)
-                               memcpy(prog->knownstrings, oldstrings, prog->numknownstrings * sizeof(char *));
+                               memcpy((char **)prog->knownstrings, oldstrings, prog->numknownstrings * sizeof(char *));
                }
                prog->numknownstrings++;
        }
@@ -1882,7 +1882,7 @@ char *PRVM_AllocString(int bufferlength)
                        prog->maxknownstrings += 128;
                        prog->knownstrings = PRVM_Alloc(prog->maxknownstrings * sizeof(char *));
                        if (prog->numknownstrings)
-                               memcpy(prog->knownstrings, oldstrings, prog->numknownstrings * sizeof(char *));
+                               memcpy((char **)prog->knownstrings, oldstrings, prog->numknownstrings * sizeof(char *));
                }
                prog->numknownstrings++;
        }