summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-16 02:41:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-16 02:41:23 +0000
commitbf451dbba4e96c2ad0f5cb9d8684edd9e982a859 (patch)
treef25fe7dd573a6c84c798e0038a0a1aae624aa1ff /dln.c
parent6a613ba2e4f23b736934b48803bfc0288edace1b (diff)
* dln.c (dln_load): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dln.c b/dln.c
index 69f44a7..bb64c52 100644
--- a/dln.c
+++ b/dln.c
@@ -1433,8 +1433,8 @@ dln_load(const char *file)
if (err_stat != B_NO_ERROR) {
char real_name[MAXPATHLEN];
- strcpy(real_name, buf);
- strcat(real_name, "__Fv");
+ strlcpy(real_name, buf, MAXPATHLEN);
+ strlcat(real_name, "__Fv", MAXPATHLEN);
err_stat = get_image_symbol(img_id, real_name,
B_SYMBOL_TYPE_TEXT, (void **)&init_fct);
}