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:
@@ -48,7 +48,7 @@ get_full_path_of_dll (const char* str, char *name)
|
||||
int len = strlen (str);
|
||||
|
||||
/* empty string or too long to be legal win32 pathname? */
|
||||
if (len == 0 || len >= CYG_MAX_PATH - 1)
|
||||
if (len == 0 || len >= CYG_MAX_PATH)
|
||||
return str; /* Yes. Let caller deal with it. */
|
||||
|
||||
const char *ret;
|
||||
|
Reference in New Issue
Block a user