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:
@ -103,7 +103,7 @@ dll_list::operator[] (const char *name)
|
||||
dll *
|
||||
dll_list::alloc (HINSTANCE h, per_process *p, dll_type type)
|
||||
{
|
||||
char name[CYG_MAX_PATH + 1];
|
||||
char name[CYG_MAX_PATH];
|
||||
DWORD namelen = GetModuleFileName (h, name, sizeof (name));
|
||||
|
||||
/* Already loaded? */
|
||||
|
Reference in New Issue
Block a user