diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-03-02 12:33:50 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-03-02 12:33:50 +0000 |
commit | ed94def22d4141379d3f21957655156db254e1ca (patch) | |
tree | a4a766c619e41ddd3d267ea431d1b1223a4b77d4 /winsup/cygwin/dir.cc | |
parent | 75c566fc64d7557964facbacfb456e952f47027c (diff) | |
download | newlib-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.cc | 2 |
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'; |