From 71fa6a35107d4d4547eb9155d7c2612b6a6a16fb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 14 May 2014 10:26:30 +0200 Subject: [PATCH] w32: Make make_absfilename work with drive letters. * common/stringhelp.c (do_make_filename) [HAVE_DRIVE_LETTERS]: Fix. --- common/stringhelp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/stringhelp.c b/common/stringhelp.c index 4d7c3a63b..e1ddf2cfb 100644 --- a/common/stringhelp.c +++ b/common/stringhelp.c @@ -496,7 +496,9 @@ do_make_filename (int xmode, const char *first_part, va_list arg_ptr) { #ifdef HAVE_DRIVE_LETTERS p = strchr (name, ':'); - if (!p) + if (p) + p++; + else p = name; #else p = name;