e8c9eaf450
- 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...
33 lines
967 B
Plaintext
33 lines
967 B
Plaintext
$OpenBSD: patch-Wnn_uum_wnnrc_op_c,v 1.1 2000/04/16 21:53:32 espie Exp $
|
||
--- Wnn/uum/wnnrc_op.c.orig Sat Apr 15 21:28:33 2000
|
||
+++ Wnn/uum/wnnrc_op.c Sat Apr 15 21:31:43 2000
|
||
@@ -148,7 +148,7 @@ char *s;
|
||
#endif /* defined(SYSVR2) && !defined(AIXV3) */
|
||
|
||
if(*s != '~' && *s != '@') {
|
||
- strcpy(tmp, s);
|
||
+ strlcpy(tmp, s, sizeof(tmp));
|
||
*s = '\0';
|
||
noerr = 1;
|
||
}else{
|
||
@@ -160,7 +160,7 @@ char *s;
|
||
#else
|
||
if(NULL != (p = strchr(++s1, '/'))){
|
||
#endif
|
||
- strcpy(tmp, p);
|
||
+ strlcpy(tmp, p, sizeof(tmp));
|
||
*p = '\0';
|
||
} else *tmp = '\0';
|
||
/* ここまでは準備。s…先頭、s1…2文字目、p…最初の'/'のあったところ
|
||
@@ -581,8 +581,8 @@ open_uumrc()
|
||
}
|
||
strcpy(buf, LIBDIR);
|
||
strcat(buf, "/");
|
||
- strcat(buf, lang_dir);
|
||
- strcat(buf, RCFILE);
|
||
+ strlcat(buf, lang_dir, sizeof buf);
|
||
+ strlcat(buf, RCFILE, sizeof buf);
|
||
if((fp = fopen(buf, "r")) != NULL){
|
||
if(verbose_option) fprintf(stderr, "uumrc: using uumrc %s\r\n", buf);
|
||
return fp;
|