* fhandler_proc.cc (format_proc_cygdrive): Fix symlink path if cygdrive
is "/".
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user