diff --git a/srcpkgs/xsel/patches/strncpy.patch b/srcpkgs/xsel/patches/strncpy.patch new file mode 100644 index 0000000000..7c6f42a5d0 --- /dev/null +++ b/srcpkgs/xsel/patches/strncpy.patch @@ -0,0 +1,13 @@ +diff --git xsel.c xsel.c +index 79cc68b..556585e 100644 +--- xsel.c ++++ xsel.c +@@ -1983,7 +1983,7 @@ main(int argc, char *argv[]) + dont_output = True; + } else if (OPT("--logfile") || OPT("-l")) { + i++; if (i >= argc) goto usage_err; +- strncpy (logfile, argv[i], MAXFNAME); ++ strncpy (logfile, argv[i], MAXFNAME-1); + } else { + goto usage_err; + } diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template index 9a0b62070a..edc001dba4 100644 --- a/srcpkgs/xsel/template +++ b/srcpkgs/xsel/template @@ -1,12 +1,12 @@ # Template file for 'xsel' pkgname=xsel version=1.2.0 -revision=3 -distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz" -checksum="b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c" +revision=4 build_style="gnu-configure" makedepends="libXt-devel" +short_desc="Command-line getting and setting the contents of the X selection" maintainer="Steven R " +license="custom" homepage="http://www.vergenet.net/~conrad/software/xsel/" -license="Custom" -short_desc="Command-line program for getting and setting the contents of the X selection" +distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz" +checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c