openbsd-ports/japanese/Wnn/patches/patch-Wnn_uum_key_bind_c
espie e8c9eaf450 Loads of changes, not quite finished yet.
- format man pages using new jgroff, so that we can install a full set
of documentation.
- move INSTALL script into a separate script, so that adding a new user
need not be done at the time of INSTALL.
- add a few strlcpy to fix a few holes. This stuff is rather bad, though.
- use terminfo instead of termcap, for better keycap names, fixing quite
a few bugs that made it impossible to build that version along the way...
- move scripts into /usr/local/bin instead of /usr/local/bin/Wnn4.

- use @comment no checksum
in packing list, even though pkg_add does not support that yet.
Not quite completely ready, but getting there...
2000-04-16 21:53:26 +00:00

21 lines
808 B
Plaintext

$OpenBSD: patch-Wnn_uum_key_bind_c,v 1.1 2000/04/16 21:53:31 espie Exp $
--- Wnn/uum/key_bind.c.orig Sat Apr 15 21:35:46 2000
+++ Wnn/uum/key_bind.c Sat Apr 15 21:36:19 2000
@@ -265,11 +265,11 @@ init_key_table()
/* uumrcĽŐĽĄĽ¤Ľë¤Ť¤éĄŁ*/
if (uumkey_name_in_uumrc[0] != '\0') {
- strcpy(file_name, uumkey_name_in_uumrc);
- }else if(strcpy(file_name, LIBDIR),
- strcat(file_name, "/"),
- strcat(file_name, lang_dir),
- strcat(file_name, CPFILE),
+ strlcpy(file_name, uumkey_name_in_uumrc, sizeof file_name);
+ }else if(strlcpy(file_name, LIBDIR, sizeof file_name),
+ strlcat(file_name, "/", sizeof file_name),
+ strlcat(file_name, lang_dir, sizeof file_name),
+ strlcat(file_name, CPFILE, sizeof file_name),
(fp = fopen(file_name , "r")) != NULL){
/* default */
fclose(fp);