diff options
Diffstat (limited to 'common/t-stringhelp.c')
-rw-r--r-- | common/t-stringhelp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/t-stringhelp.c b/common/t-stringhelp.c index 8d0c1c576..4086f8c3d 100644 --- a/common/t-stringhelp.c +++ b/common/t-stringhelp.c @@ -88,7 +88,15 @@ mygetcwd (void) return buffer; #else if (getcwd (buffer, size) == buffer) - return buffer; + { +#ifdef HAVE_W32_SYSTEM + char *p; + for (p = buffer; *p; p++) + if (*p == '\\') + *p = '/'; +#endif + return buffer; + } xfree (buffer); if (errno != ERANGE) { |