From f04df80d7222dcca32445bcc83660cd6a9a747b6 Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Mon, 3 Oct 2005 00:26:39 +0000 Subject: [PATCH] allocate memory for the string. thanks to thomas for finding it. svn path=/trunk/; revision=18233 --- reactos/subsys/system/cmd/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/internal.c b/reactos/subsys/system/cmd/internal.c index 325676fb077..560344ac6c3 100644 --- a/reactos/subsys/system/cmd/internal.c +++ b/reactos/subsys/system/cmd/internal.c @@ -535,7 +535,7 @@ BOOL DeleteFolder(LPTSTR FileName) } INT cmd_rmdir (LPTSTR cmd, LPTSTR param) { - LPTSTR dir; /* pointer to the directory to change to */ + TCHAR dir[MAX_PATH]; /* pointer to the directory to change to */ char ch; INT args; LPTSTR *arg = NULL;