aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dir.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-03-02 12:33:50 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-03-02 12:33:50 +0000
commited94def22d4141379d3f21957655156db254e1ca (patch)
treea4a766c619e41ddd3d267ea431d1b1223a4b77d4 /winsup/cygwin/dir.cc
parent75c566fc64d7557964facbacfb456e952f47027c (diff)
downloadnewlib-ed94def22d4141379d3f21957655156db254e1ca.zip
newlib-ed94def22d4141379d3f21957655156db254e1ca.tar.gz
newlib-ed94def22d4141379d3f21957655156db254e1ca.tar.bz2
* dir.cc (readdir): Fix creating path in symlink check.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r--winsup/cygwin/dir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index 29d8084..aa4092b 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -184,7 +184,7 @@ readdir (DIR * dir)
{
char fbuf[MAX_PATH + 1];
strcpy (fbuf, dir->__d_dirname);
- strcat (fbuf + strlen (fbuf) - 1, dir->__d_dirent->d_name);
+ strcpy (fbuf + strlen (fbuf) - 1, dir->__d_dirent->d_name);
path_conv fpath (fbuf, PC_SYM_NOFOLLOW);
if (fpath.issymlink ())
c[len - 4] = '\0';