diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c index 46a2ce5016..8a348d849d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3579,7 +3579,6 @@ char * rb_w32_getcwd(char *buffer, int size) { char *p = buffer; - char *bp; int len; len = GetCurrentDirectory(0, NULL); @@ -3610,11 +3609,7 @@ rb_w32_getcwd(char *buffer, int size) return NULL; } - for (bp = p; *bp != '\0'; bp = CharNext(bp)) { - if (*bp == '\\') { - *bp = '/'; - } - } + translate_char(p, '\\', '/'); return p; } |