diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2003-11-14 23:40:06 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2003-11-14 23:40:06 +0000 |
commit | 95d02d5b9be998c93ffb23085ebd5b2ba263463a (patch) | |
tree | 2081f00a0190ca76c33f1bc026dbc8f4c7141404 /winsup/cygwin/pthread.cc | |
parent | 508682370b4aad954555e5611c994eb96fb5cc56 (diff) | |
download | cygnal-95d02d5b9be998c93ffb23085ebd5b2ba263463a.tar.gz cygnal-95d02d5b9be998c93ffb23085ebd5b2ba263463a.tar.bz2 cygnal-95d02d5b9be998c93ffb23085ebd5b2ba263463a.zip |
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.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 275e566ab..78c7f46ec 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -168,8 +168,8 @@ mangle_sem_name (char *mangled, const char *name) if (check_null_empty_str_errno (name)) return false; int len = strlen (name); - if (len > MAX_PATH - || (wincap.has_terminal_services () && len > MAX_PATH - 7)) + if (len > CYG_MAX_PATH + || (wincap.has_terminal_services () && len > CYG_MAX_PATH - 7)) { set_errno (EINVAL); return false; @@ -196,7 +196,7 @@ sem_open (const char *name, int oflag, ...) value = va_arg (ap, unsigned int); va_end (ap); } - char mangled_name[MAX_PATH + 1]; + char mangled_name[CYG_MAX_PATH + 1]; if (!mangle_sem_name (mangled_name, name)) return NULL; return semaphore::open (mangled_name, oflag, mode, value); |