Enlarge max. length of PATH variable in programs/cmd/wcmdmain.c

Ann & Jason Edmeades us at edmeades.me.uk
Tue Mar 20 16:58:49 CDT 2007

>However according to http://support.microsoft.com/kb/830473 : "the total
length .... 
>cannot contain more than either 2047 or 8191 characters (as appropriate to
>operating system)"

I'd suggest changing it to MAXSTRING which is used throughout cmd to refer
to a 'big' string (of 8192 chars). At least this way you can grow the max
line length simply!

>PS: I think   char string[1024]; in the main() should be extended 
>    to   char string[2048];   as well! (please see the MS note above)

Yes, I'd agree (to MAXSTRING, but change the 1024 in at least one of the
calls appropriately as well)


More information about the wine-devel mailing list