summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-12 20:17:28 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-12 20:17:28 +0000
commit21d7ec1928ebe7dde587f047d50b03a894e0fa6b (patch)
treedbb3de381445704c25f84c5d6d9c640ee3ba6a7d /winsup/cygwin/fhandler_disk_file.cc
parentfb3dd716764e26ddfd105cec227a689b97ddae91 (diff)
downloadcygnal-21d7ec1928ebe7dde587f047d50b03a894e0fa6b.tar.gz
cygnal-21d7ec1928ebe7dde587f047d50b03a894e0fa6b.tar.bz2
cygnal-21d7ec1928ebe7dde587f047d50b03a894e0fa6b.zip
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix problem where search
characters overwrote the path instead of being tacked on the end.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 7aba0b40c..e8c66bba8 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -53,9 +53,9 @@ path_conv::ndisk_links (DWORD nNumberOfLinks)
}
if (len == 0 || isdirsep (fn[len - 1]))
- strcpy (fn, s + 1);
+ strcpy (fn + len, s + 1);
else
- strcat (fn, s);
+ strcpy (fn + len, s);
WIN32_FIND_DATA buf;
HANDLE h = FindFirstFile (fn, &buf);