* spawn.cc (find_exec): Use tmp_pathbuf to allocate path buffer.
This commit is contained in:
parent
ab5d348d30
commit
4855f6c517
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user