From 95d02d5b9be998c93ffb23085ebd5b2ba263463a Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Fri, 14 Nov 2003 23:40:06 +0000 Subject: 2003-11-11 Robert Collins Ron Parker * 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. --- winsup/cygwin/spawn.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/spawn.cc') diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index ab749d608..02afbf3e3 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -35,7 +35,7 @@ details. */ #include "environ.h" #include "cygthread.h" -#define LINE_BUF_CHUNK (MAX_PATH * 2) +#define LINE_BUF_CHUNK (CYG_MAX_PATH * 2) static suffix_info std_suffixes[] = { @@ -88,7 +88,7 @@ find_exec (const char *name, path_conv& buf, const char *mywinenv, const char *suffix = ""; debug_printf ("find_exec (%s)", name); const char *retval = buf; - char tmp[MAX_PATH]; + char tmp[CYG_MAX_PATH]; const char *posix = (opt & FE_NATIVE) ? NULL : name; bool has_slash = strchr (name, '/'); @@ -307,7 +307,7 @@ av::unshift (const char *what, int conv) argv = av; memmove (argv + 1, argv, (argc + 1) * sizeof (char *)); - char buf[MAX_PATH + 1]; + char buf[CYG_MAX_PATH + 1]; if (conv) { cygwin_conv_to_posix_path (what, buf); @@ -462,7 +462,7 @@ spawn_guts (const char * prog_arg, const char *const *argv, DWORD done; - char buf[2 * MAX_PATH + 1]; + char buf[2 * CYG_MAX_PATH + 1]; buf[0] = buf[1] = buf[2] = buf[sizeof (buf) - 1] = '\0'; if (!ReadFile (hnd, buf, sizeof (buf) - 1, &done, 0)) { -- cgit v1.2.3