summaryrefslogtreecommitdiff
path: root/japanese/sj3/files/patch-ai
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-07-15 15:37:42 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-07-15 15:37:42 +0000
commit83deb15c08fd8782e4ceb2f62b0b3c2d46fb1683 (patch)
treec584e20309cec213b03ba9bc5534fc1fa4e96667 /japanese/sj3/files/patch-ai
parentFix build error on some platforms (except for i386 and alpha). (diff)
Fix build error on amd64 (maybe ia64, too).
Submitted by: Hiroo Ono <hiroo+freebsd@oikumene.gcd.org> Tested on the box from: AMD Developper Program (FreeBSD/amd64)
Notes
Notes: svn path=/head/; revision=113720
Diffstat (limited to 'japanese/sj3/files/patch-ai')
-rw-r--r--japanese/sj3/files/patch-ai22
1 files changed, 0 insertions, 22 deletions
diff --git a/japanese/sj3/files/patch-ai b/japanese/sj3/files/patch-ai
deleted file mode 100644
index b2ed64a2b9c6..000000000000
--- a/japanese/sj3/files/patch-ai
+++ /dev/null
@@ -1,22 +0,0 @@
---- server/execute.c.orig Mon Apr 13 07:20:22 1998
-+++ server/execute.c Fri Feb 2 19:47:07 2001
-@@ -105,7 +105,7 @@
- i = strlen(dict_dir) + 1 + strlen(path) + 1;
- if (i > sizeof(tmp)) return ERROR;
-
-- strcpy(tmp, path);
-+ strlcpy(tmp, path, sizeof(tmp));
- index = strtok(tmp, "/");
- do {
- if (!strcmp(index, "..")) return ERROR;
-@@ -118,9 +118,7 @@
- return ERROR;
- }
- }
-- strcpy(tmp, dict_dir);
-- strcat(tmp, "/");
-- strcat(tmp, path);
-+ snprintf(tmp, sizeof(tmp), "%s/%s", dict_dir, path);
- strcpy(path, tmp);
- return 0;
- }