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:
Corinna Vinschen
2005-04-03 08:45:21 +00:00
parent 5e679b1981
commit fe3e333661
15 changed files with 41 additions and 35 deletions

View File

@@ -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;