* 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>
|
2014-10-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* gendef (sigdelayed): 64 bit only: Fix seh_pushreg statements in
|
* 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);
|
destbuf = (char *) crealloc_abort (destbuf, mount_table->cygdrive_len + 1);
|
||||||
char *dend = stpcpy (destbuf, mount_table->cygdrive);
|
char *dend = stpcpy (destbuf, mount_table->cygdrive);
|
||||||
*--dend = '\0';
|
if (dend > destbuf + 1) /* cygdrive != "/"? */
|
||||||
|
*--dend = '\0';
|
||||||
return dend - destbuf;
|
return dend - destbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue