Jason Edmeades : cmd: Prevent overflow for long command string.

Alexandre Julliard julliard at winehq.org
Tue Nov 27 14:30:50 CST 2012


Module: wine
Branch: master
Commit: d71f5c9483b87e16ce36e9d992541c8968cb1d47
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d71f5c9483b87e16ce36e9d992541c8968cb1d47

Author: Jason Edmeades <jason at edmeades.me.uk>
Date:   Mon Nov 19 22:34:09 2012 +0000

cmd: Prevent overflow for long command string.

---

 programs/cmd/batch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index e9b98dc..8cd48e8 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -153,7 +153,7 @@ WCHAR *WCMD_parameter_with_delims (WCHAR *s, int n, WCHAR **start,
                                    BOOL raw, BOOL wholecmdline, const WCHAR *delims)
 {
     int curParamNb = 0;
-    static WCHAR param[MAX_PATH];
+    static WCHAR param[MAXSTRING];
     WCHAR *p = s, *begin;
 
     if (start != NULL) *start = NULL;




More information about the wine-cvs mailing list