* spawn.cc (find_exec): Use tmp_pathbuf to allocate path buffer.

This commit is contained in:
Corinna Vinschen 2008-03-11 13:26:40 +00:00
parent ab5d348d30
commit 4855f6c517
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (find_exec): Use tmp_pathbuf to allocate path buffer.
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
* dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf to

View File

@ -107,7 +107,8 @@ find_exec (const char *name, path_conv& buf, const char *mywinenv,
const char *suffix = "";
debug_printf ("find_exec (%s)", name);
const char *retval = buf.get_win32 ();
char tmp[CYG_MAX_PATH];
tmp_pathbuf tp;
char *tmp = tp.c_get ();
const char *posix = (opt & FE_NATIVE) ? NULL : name;
bool has_slash = strchr (name, '/');
int err;