diff options
author | Werner Koch <[email protected]> | 2014-05-14 08:26:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-05-14 16:13:07 +0000 |
commit | 71fa6a35107d4d4547eb9155d7c2612b6a6a16fb (patch) | |
tree | dbe3d2ac6ccfbdeaf7e03694d35281cdc46e559d /common/stringhelp.c | |
parent | gpg: Remove useless diagnostic in MDC verification. (diff) | |
download | gnupg-71fa6a35107d4d4547eb9155d7c2612b6a6a16fb.tar.gz gnupg-71fa6a35107d4d4547eb9155d7c2612b6a6a16fb.zip |
w32: Make make_absfilename work with drive letters.
* common/stringhelp.c (do_make_filename) [HAVE_DRIVE_LETTERS]: Fix.
Diffstat (limited to 'common/stringhelp.c')
-rw-r--r-- | common/stringhelp.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |