openbsd-ports/japanese/Wnn/patches/patch-Wnn_uum_prologue_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

37 lines
1.5 KiB
Plaintext

$OpenBSD: patch-Wnn_uum_prologue_c,v 1.1 2000/04/16 21:53:32 espie Exp $
--- Wnn/uum/prologue.c.orig Sat Apr 15 21:33:07 2000
+++ Wnn/uum/prologue.c Sat Apr 15 21:35:31 2000
@@ -87,7 +87,7 @@ open_romkan()
romkan_set_lang(lang_dir);
if (*rkfile_name_in_uumrc != '\0') {
- strcpy(name, rkfile_name_in_uumrc);
+ strlcpy(name, rkfile_name_in_uumrc, sizeof name);
}else {
strcpy(name , LIBDIR);
strcat(name , RKFILE);
@@ -280,8 +280,8 @@ int first;
for (p = normal_env; p; p = p->next) {
cur_normal_env = p;
get_envrc_name(uumrc_name);
- strcpy(environment, username);
- strcat(environment, p->env_name_str);
+ strlcpy(environment, username, sizeof environment);
+ strlcat(environment, p->env_name_str, sizeof environment);
if (servername == NULL && def_servername && *def_servername) {
servername = malloc(strlen(def_servername)+1);
strcpy(servername, def_servername);
@@ -321,9 +321,9 @@ int first;
for (p = reverse_env; p; p = p->next) {
cur_reverse_env = p;
if (get_envrc_name_reverse(uumrc_name) > 0) {
- strcpy(environment, username);
- strcat(environment, p->env_name_str);
- strcat(environment, "R");
+ strlcpy(environment, username, sizeof environment);
+ strlcat(environment, p->env_name_str, sizeof environment);
+ strlcat(environment, "R", sizeof environment);
if (reverse_servername == NULL && def_reverse_servername
&& *def_reverse_servername) {
reverse_servername =