X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=filematch.c;h=ca0969ce9eff01131e2b678077ead274e1f5b669;hp=758575f2e8329d4369e8be1449678ff9a95837bf;hb=aa33d8f8642530f7f266d6cde1422f95aa74b2be;hpb=60957c2f74fc42d2ab59e5973a469b2e9ee39824 diff --git a/filematch.c b/filematch.c index 758575f2..ca0969ce 100644 --- a/filematch.c +++ b/filematch.c @@ -61,7 +61,7 @@ int matchpattern(char *in, char *pattern, int caseinsensitive) stringlist_t *stringlistappend(stringlist_t *current, char *text) { stringlist_t *newitem; - newitem = Z_Malloc(strlen(text) + 1 + sizeof(stringlist_t)); + newitem = (stringlist_t *)Z_Malloc(strlen(text) + 1 + sizeof(stringlist_t)); newitem->next = NULL; newitem->text = (char *)(newitem + 1); strcpy(newitem->text, text);