diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-06-17 12:46:59 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-06-17 12:46:59 +0400 |
commit | 451f0f45ee63a7e0c9bec5f2b3865ca9924be2cb (patch) | |
tree | 5171384a00fc346ecf78f18267788af7f312d3bd /winsup/cygwin/libc/rexec.cc | |
parent | 1f4923ae7393c92740c01248b0b5a538624f9f7d (diff) |
* libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returning
an out-of-scope address.
Diffstat (limited to 'winsup/cygwin/libc/rexec.cc')
-rw-r--r-- | winsup/cygwin/libc/rexec.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/libc/rexec.cc b/winsup/cygwin/libc/rexec.cc index d5548bf15..c3074d381 100644 --- a/winsup/cygwin/libc/rexec.cc +++ b/winsup/cygwin/libc/rexec.cc @@ -317,7 +317,7 @@ cygwin_rexec (char **ahost, unsigned short rport, char *name, char *pass, u_short port = 0; int s, timo = 1, s3; char c; - char ahostbuf[INTERNET_MAX_HOST_NAME_LENGTH + 1]; + static char ahostbuf[INTERNET_MAX_HOST_NAME_LENGTH + 1]; myfault efault; if (efault.faulted (EFAULT)) |