summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-11-18 14:21:34 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-11-18 14:21:34 +0000
commit7e1985fcd8e4e0634f5ffb471b57afe242f152c4 (patch)
treebc58a8ec46f7f66cc726198bb8652401f838e39d
parente0d617c1f733f7550ec9012b3a9b126e8532340b (diff)
Notes
-rw-r--r--sys/i386/ibcs2/imgact_coff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c
index f3a8e96ec3f4..6470813236d6 100644
--- a/sys/i386/ibcs2/imgact_coff.c
+++ b/sys/i386/ibcs2/imgact_coff.c
@@ -388,7 +388,7 @@ exec_coff_imgact(imgp)
libbuf = malloc(MAXPATHLEN + emul_path_len,
M_TEMP, M_WAITOK);
- strlcpy(libbuf, ibcs2_emul_path, MAXPATHLEN);
+ strcpy(libbuf, ibcs2_emul_path);
for (j = off; j < scns[i].s_size + off;) {
long stroff, nextoff;
@@ -402,7 +402,7 @@ exec_coff_imgact(imgp)
DPRINTF(("%s(%d): shared library %s\n",
__FILE__, __LINE__, libname));
- strcpy(&libbuf[emul_path_len], libname);
+ strlcpy(&libbuf[emul_path_len], libname, MAXPATHLEN);
/* XXXKSE only 1:1 in coff */ error = coff_load_file(
FIRST_THREAD_IN_PROC(imgp->proc), libbuf);
if (error)