Unify usage of CYG_MAX_PATH throughout. Change buffers from

size CYG_MAX_PATH + 1 to CYG_MAX_PATH.  Change length tests
	accordingly.
This commit is contained in:
Corinna Vinschen
2005-04-03 08:45:21 +00:00
parent 5e679b1981
commit fe3e333661
15 changed files with 41 additions and 35 deletions

View File

@@ -528,7 +528,7 @@ break_here ()
static void
initial_env ()
{
char buf[CYG_MAX_PATH + 1];
char buf[CYG_MAX_PATH];
if (GetEnvironmentVariable ("CYGWIN_TESTING", buf, sizeof (buf) - 1))
_cygwin_testing = 1;
@@ -550,7 +550,7 @@ initial_env ()
}
if (GetEnvironmentVariable ("CYGWIN_DEBUG", buf, sizeof (buf) - 1))
{
char buf1[CYG_MAX_PATH + 1];
char buf1[CYG_MAX_PATH];
len = GetModuleFileName (NULL, buf1, CYG_MAX_PATH);
strlwr (buf1);
strlwr (buf);