diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-26 04:38:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-26 04:38:07 +0000 |
commit | 17880a7ef4068af2f579a2b7c607ca15a9dcef51 (patch) | |
tree | e7ea8c3d2eab338f544b8dcde40bc39be39f7a25 /dln.c | |
parent | 6ff91b297c03a87e953f2c8f571ff7e53cdfede1 (diff) | |
download | ruby-17880a7ef4068af2f579a2b7c607ca15a9dcef51.tar.gz ruby-17880a7ef4068af2f579a2b7c607ca15a9dcef51.tar.xz ruby-17880a7ef4068af2f579a2b7c607ca15a9dcef51.zip |
* dln.c (conv_to_posix_path): removed.
* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return
VALUE instead of a pointer to static buffer.
* ruby.c (push_include_cygwin): fixed buffer overflow.
[ruby-dev:31297]
* ruby.c (ruby_init_loadpath): not convert built-in paths.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -1600,32 +1600,6 @@ dln_find_file(const char *fname, const char *path) #endif } -#if defined(__CYGWIN32__) -const char * -conv_to_posix_path(char *win32, char *posix, int len) -{ - char *first = win32; - char *p = win32; - char *dst = posix; - - posix[0] = '\0'; - for (p = win32; *p; p++) - if (*p == ';') { - *p = 0; - cygwin32_conv_to_posix_path(first, posix); - posix += strlen(posix); - *posix++ = ':'; - first = p + 1; - *p = ';'; - } - if (len < strlen(first)) - fprintf(stderr, "PATH length too long: %s\n", first); - else - cygwin32_conv_to_posix_path(first, posix); - return dst; -} -#endif - static char fbuf[MAXPATHLEN]; static char * |