$OpenBSD: patch-Wnn_uum_wnnrc_op_c,v 1.2 2015/07/25 16:47:12 espie Exp $
--- Wnn/uum/wnnrc_op.c.orig	Fri Jul 24 10:31:15 2015
+++ Wnn/uum/wnnrc_op.c	Fri Jul 24 10:44:10 2015
@@ -50,7 +50,8 @@
  */
 /* uumrc operations */
 
-#include "stdio.h"
+#include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 #include <sys/errno.h>
 #include <pwd.h>
@@ -148,7 +149,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 +161,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ģʸܡpĺǽ'/'ΤäȤ
@@ -581,8 +582,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;
