From 303e27ed4a3dd852e6e15cf37cdc1eda8734bde0 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Wed, 17 Oct 2001 19:14:07 +0000 Subject: [PATCH] fix for cvar tab completion crash git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@934 d7cf8633-e32d-0410-b094-e92efae38249 --- cvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvar.c b/cvar.c index 318adc45..f8b874c1 100644 --- a/cvar.c +++ b/cvar.c @@ -144,7 +144,7 @@ Cvar_CompleteBuildList (char *partial) char **buf; len = strlen(partial); - buf = malloc(sizeofbuf + sizeof (char *)); + buf = qmalloc(sizeofbuf + sizeof (char *)); // Loop through the alias list and print all matches for (cvar = cvar_vars; cvar; cvar = cvar->next) if (!strncasecmp(partial, cvar->name, len)) -- 2.39.2