57f0b5d904
While here: - remove quotes around COMMENT - change MAINTAINER's email - update patches - reformat dependencies/WANTLIB - don't use hardcoded patches in man and info pages based on a diff from Julian Leyh <julian at vgai dot de> (MAINTAINER)
15 lines
564 B
Plaintext
15 lines
564 B
Plaintext
$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.
|