diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-27 00:15:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-27 00:15:31 +0000 |
commit | c30616378e04578a3bfe8650b3c98caf7968b458 (patch) | |
tree | 3871a01bca2261f74c4ae624b00889bd5d3a5c81 /dln.c | |
parent | 92c2f654db6b522449700c3ddecbf786589ad1c2 (diff) | |
download | ruby-c30616378e04578a3bfe8650b3c98caf7968b458.tar.gz |
* dln.h (dln_find_exe, dln_find_file): deprecated, use reentrant
versions instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -348,14 +348,14 @@ sym_hash(struct exec *hdrp, struct nlist *syms) static int dln_init(const char *prog) { - char *file; + char *file, fbuf[MAXPATHLEN]; int fd; struct exec hdr; struct nlist *syms; if (dln_init_p == 1) return 0; - file = dln_find_exe(prog, NULL); + file = dln_find_exe_r(prog, NULL, fbuf, sizeof(fbuf)); if (file == NULL || (fd = open(file, O_RDONLY)) < 0) { dln_errno = errno; return -1; |