$OpenBSD: patch-src_mount_c,v 1.1 2004/06/17 11:21:43 sturm Exp $
--- src/mount.c.orig	2004-06-10 10:50:04.000000000 -0400
+++ src/mount.c	2004-06-10 12:25:16.000000000 -0400
@@ -76,7 +76,7 @@ for (mp = VMOUNTED; mp != NULL; mp=mp->n
 
    if (strcmp(sp,lastlink) == 0)
       {
-      strcpy(server,mp->name+strlen(host)+1);
+      (void)strlcpy(server,mp->name+strlen(host)+1,CF_BUFSIZE);
       return(true);
       }
    }
@@ -110,15 +110,15 @@ for (mp = VMOUNTABLES; mp !=NULL; mp=mp-
       }
    }
  
- strcpy(VBUFF,dir);
+ (void)strlcpy(VBUFF,dir,sizeof(VBUFF));
 
 if (VBUFF[strlen(VBUFF)-1] == '/')
    {
-   strcat(VBUFF,"..");
+   (void)strlcat(VBUFF,"..",sizeof(VBUFF));
    }
 else
    {
-   strcat(VBUFF,"/..");
+   (void)strlcat(VBUFF,"/..",sizeof(VBUFF));
    }
 
 if (stat(VBUFF,&parentstat) == -1)
