2003-11-11 Robert Collins <rbtcollins@hotmail.com>
Ron Parker <rdparker@butlermfg.com> * bsdlib.cc: Update throughout to use CYG_MAX_PATH rather than MAX_PATH. * cygheap.h: Ditto. * dcrt0.cc: Ditto. * delqueue.cc: Ditto. * dlfcn.cc: Ditto. * dll_init.cc: Ditto. * dll_init.h: Ditto. * dtable.cc: Ditto. * environ.cc: Ditto. * environ.h: Ditto. * exceptions.cc: Ditto. * external.cc: Ditto. * fhandler_disk_file.cc: Ditto. * fhandler_proc.cc: Ditto. * fhandler_process.cc: Ditto. * fhandler_raw.cc: Ditto. * fhandler_registry.cc: Ditto. * fhandler_socket.cc: Ditto. * fhandler_virtual.cc: Ditto. * miscfuncs.cc: Ditto. * mmap.cc: Ditto. * netdb.cc: Ditto. * path.cc: Ditto. * path.h: Ditto. * pinfo.cc: Ditto. * pinfo.h: Ditto. * pthread.cc: Ditto. * registry.cc: Ditto. * shared.cc: Ditto. * shared_info.h: Ditto. * smallprint.c: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * thread.h: Ditto. * uinfo.cc: Ditto. * winsup.h: Ditto. * include/limits.h: Ditto. * include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
This commit is contained in:
@@ -251,7 +251,7 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle)
|
||||
dev.parse ("/dev/ttyS0");
|
||||
else
|
||||
{
|
||||
name = handle_to_fn (handle, (char *) alloca (MAX_PATH + 100));
|
||||
name = handle_to_fn (handle, (char *) alloca (CYG_MAX_PATH + 100));
|
||||
bin = 0;
|
||||
}
|
||||
}
|
||||
@@ -768,7 +768,7 @@ handle_to_fn (HANDLE h, char *posix_fn)
|
||||
|
||||
ntfn->Name.Buffer[ntfn->Name.Length / sizeof (WCHAR)] = 0;
|
||||
|
||||
char win32_fn[MAX_PATH + 100];
|
||||
char win32_fn[CYG_MAX_PATH + 100];
|
||||
sys_wcstombs (win32_fn, ntfn->Name.Buffer, ntfn->Name.Length);
|
||||
debug_printf ("nt name '%s'", win32_fn);
|
||||
if (!strncasematch (win32_fn, DEVICE_PREFIX, DEVICE_PREFIX_LEN)
|
||||
@@ -782,8 +782,8 @@ handle_to_fn (HANDLE h, char *posix_fn)
|
||||
char *maxmatchdos = NULL;
|
||||
for (char *s = fnbuf; *s; s = strchr (s, '\0') + 1)
|
||||
{
|
||||
char device[MAX_PATH + 10];
|
||||
device[MAX_PATH + 9] = '\0';
|
||||
char device[CYG_MAX_PATH + 10];
|
||||
device[CYG_MAX_PATH + 9] = '\0';
|
||||
if (strchr (s, ':') == NULL)
|
||||
continue;
|
||||
if (!QueryDosDevice (s, device, sizeof (device) - 1))
|
||||
|
Reference in New Issue
Block a user