From ed9ca01ada241f7042f4b7dd1a83f4e497de8221 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 17 Nov 2000 02:45:23 +0000 Subject: [PATCH] remove -basedir handling. wrong idea, bad implementation (fixed size MALLOC?!?) --- source/cmd.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/source/cmd.c b/source/cmd.c index 85ffc63..502de54 100644 --- a/source/cmd.c +++ b/source/cmd.c @@ -300,7 +300,7 @@ void Cmd_StuffCmds_f (void) return; // pull out the commands - build = malloc (s+21); // LordHavoc: +21 instead of +1 to account for potential basedir expansion + build = malloc (s+1); build[0] = 0; for (i=0 ; i