Make mingw_offset_1st_component() behave consistently for all paths.
commita12bace0064dde6a9157731a42319dfde9298e2f
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 13 Jul 2010 16:19:52 +0000 (13 12:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 8 Oct 2011 19:47:13 +0000 (8 14:47 -0500)
treed2a6dc67807a71d34e887dcc516e7715ac005c93
parent9cc96c96465d9e161f22d879e0a9ae71349e5db0
Make mingw_offset_1st_component() behave consistently for all paths.

mingw_offset_1st_component() returns "foo" for inputs "/foo" and
"c:/foo", but inconsistently returns "/foo" for UNC input
"/machine/share/foo".  Fix it to return "foo" for all cases.

Reference: http://groups.google.com/group/msysgit/browse_thread/thread/c0af578549b5dda0

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c