summaryrefslogtreecommitdiffstats
path: root/dln.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-26 11:27:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-26 11:27:00 +0000
commit7c31b2445f9e2365a2c822d157ebd48a35792d59 (patch)
tree858afffaa1fa9d653a44b9a41267823caef03e54 /dln.c
parent33a12c0df9c3b4d9eed97e67d7c196beccab6109 (diff)
downloadruby-7c31b2445f9e2365a2c822d157ebd48a35792d59.tar.gz
ruby-7c31b2445f9e2365a2c822d157ebd48a35792d59.tar.xz
ruby-7c31b2445f9e2365a2c822d157ebd48a35792d59.zip
* dln.c (dln_find_1): break if path list end, even for too long
path names. (ruby-bugs-ja:PR#412) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index 3222b3074..8876666fc 100644
--- a/dln.c
+++ b/dln.c
@@ -1741,7 +1741,7 @@ dln_find_1(fname, path, exe_flag)
*bp = '\0';
fprintf(stderr, "\tDirectory \"%s\"\n", fbuf);
fprintf(stderr, "\tFile \"%s\"\n", fname);
- continue;
+ goto next;
}
memcpy(bp, fname, i + 1);
@@ -1795,6 +1795,8 @@ dln_find_1(fname, path, exe_flag)
#else
if (mac_fullpath = _macruby_exist_file_in_libdir_as_posix_name(fbuf))
return mac_fullpath;
+
+ next:
#endif
}
}