summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/winf.cc')
-rw-r--r--winsup/cygwin/winf.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/winf.cc b/winsup/cygwin/winf.cc
index 924e60403..033de7b1e 100644
--- a/winsup/cygwin/winf.cc
+++ b/winsup/cygwin/winf.cc
@@ -15,6 +15,7 @@ details. */
#include "fhandler.h"
#include "dtable.h"
#include "cygheap.h"
+#include "tls_pbuf.h"
#include "winf.h"
#include "sys/cygwin.h"
@@ -136,7 +137,8 @@ av::unshift (const char *what, int conv)
argv = av;
memmove (argv + 1, argv, (argc + 1) * sizeof (char *));
- char buf[CYG_MAX_PATH];
+ tmp_pathbuf tp;
+ char *buf = tp.c_get ();
if (conv)
{
cygwin_conv_to_posix_path (what, buf);