* fhandler_disk_file.cc (path_conv::ndisk_links): Fix problem where search

characters overwrote the path instead of being tacked on the end.
This commit is contained in:
Christopher Faylor 2003-09-12 20:17:28 +00:00
parent fb3dd71676
commit 21d7ec1928
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-09-12 Christopher Faylor <cgf@redhat.com>
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix problem where
search characters overwrote the path instead of being tacked on the
end.
2003-09-12 Christopher Faylor <cgf@redhat.com>
* dcrt0.cc (_dll_crt0): Accommodate breaking apart of early_stuff_init.

View File

@ -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);