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

@@ -398,7 +398,7 @@ extern char **__argv;
void
_pinfo::commune_recv ()
{
char path[CYG_MAX_PATH + 1];
char path[CYG_MAX_PATH];
DWORD nr;
DWORD code;
HANDLE hp;
@@ -833,7 +833,7 @@ _pinfo::fd (int fd, size_t &n)
if (cfd < 0)
s = strdup ("");
else
s = cfd->get_proc_fd_name ((char *) malloc (CYG_MAX_PATH + 1));
s = cfd->get_proc_fd_name ((char *) malloc (CYG_MAX_PATH));
n = strlen (s) + 1;
}
return s;