mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
* fhandler_proc.cc (format_proc_cygdrive): Fix symlink path if cygdrive
is "/".
This commit is contained in:
parent
36e14a881e
commit
e91c2f80ba
@ -1,3 +1,8 @@
|
||||
2014-10-24 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_proc.cc (format_proc_cygdrive): Fix symlink path if cygdrive
|
||||
is "/".
|
||||
|
||||
2014-10-24 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* gendef (sigdelayed): 64 bit only: Fix seh_pushreg statements in
|
||||
|
@ -1360,7 +1360,8 @@ format_proc_cygdrive (void *, char *&destbuf)
|
||||
{
|
||||
destbuf = (char *) crealloc_abort (destbuf, mount_table->cygdrive_len + 1);
|
||||
char *dend = stpcpy (destbuf, mount_table->cygdrive);
|
||||
*--dend = '\0';
|
||||
if (dend > destbuf + 1) /* cygdrive != "/"? */
|
||||
*--dend = '\0';
|
||||
return dend - destbuf;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user