$OpenBSD: patch-src_updatetn_c,v 1.2 2007/07/17 12:45:49 ajacoutot Exp $
--- src/updatetn.c.orig	Tue Apr 10 05:47:00 2001
+++ src/updatetn.c	Tue Jul 17 14:26:29 2007
@@ -168,8 +168,8 @@ datptr=gtk_clist_get_row_data(GTK_CLIST(clist),row);
 if(datptr->isdir || stat(ptr,&realpic)==-1 || *ptr=='.')
   return(1);
 
-strcpy(buf,".xvpics/");
-strncat(buf,ptr,sizeof(buf)-8-2);	/* above string is 8 chars long */
+strlcpy(buf,".xvpics/",sizeof(buf));
+strlcat(buf,ptr,sizeof(buf));
 
 /* if not there, or pic is newer, or thumbnail is unreadable,
  * make a thumbnail.
