$OpenBSD: patch-src_util_c,v 1.4 2013/09/14 17:12:13 landry Exp $
--- src/util.c.orig	Wed Apr 11 20:48:33 2012
+++ src/util.c	Sat Jan  5 15:36:07 2013
@@ -278,7 +278,7 @@ const char * _ds_userdir_path (char *path, const char 
 #endif
 
   if (p == NULL) 
-      strcpy(userhome, home);
+      strlcpy(userhome, home, sizeof(userhome));
   else
       strlcpy(userhome, p->pw_dir, sizeof(userhome));
 
@@ -307,7 +307,7 @@ const char * _ds_userdir_path (char *path, const char 
   free(f);
 #else
   strlcpy(username, filename, MAX_FILENAME_LENGTH);
-  strcpy(userpath, username);
+  strlcpy(userpath, username, sizeof (userpath));
 #endif
 
   /* Use home/opt-in/ and home/opt-out/ to store opt files, instead of
@@ -860,7 +860,8 @@ inet_ntoa_r(struct in_addr in, char *buf, int len)
     return(NULL);
   }
 
-  return strcpy(buf, b);
+  strlcpy(buf, b, len);
+  return buf;
 }
 #endif
 
