From 999c9535ee6a1f52f94d1022f69b4f58884e43d7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 27 Jul 2008 00:15:31 +0000 Subject: * dln.h (dln_find_exe, dln_find_file): deprecated, use reentrant versions instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dln.c') diff --git a/dln.c b/dln.c index 219a22dbb..c19c42125 100644 --- a/dln.c +++ b/dln.c @@ -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; -- cgit