diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-15 07:59:59 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-07-15 07:59:59 +0000 |
commit | 86307f52ee1b3c5aa76e2fd6ee118e681dd76905 (patch) | |
tree | 4f5675ce901200d4245c6697d4e8d1c224949174 /dln.c | |
parent | e12510c502a3c8a81aeda66d1867eb1e760ce533 (diff) |
990715
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1565,7 +1565,7 @@ conv_to_posix_path(win32, posix, len) if (len < strlen(first)) fprintf(stderr, "PATH length too long: %s\n", first); else - strcpy(posix, first); + cygwin32_conv_to_posix_path(first, posix); return dst; } #endif @@ -1587,13 +1587,6 @@ dln_find_1(fname, path, exe_flag) const char* mac_fullpath; #endif -#if defined(__CYGWIN32__) - int pathlen = 2 * strlen(path); - int rubypathlen = pathlen > MAXPATHLEN ? pathlen : MAXPATHLEN; - char *rubypath = alloca(rubypathlen); - conv_to_posix_path(path, rubypath, rubypathlen); - path = rubypath; -#endif if (fname[0] == '/') return fname; if (strncmp("./", fname, 2) == 0 || strncmp("../", fname, 3) == 0) return fname; |