This repository was archived by the owner on Jun 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +34
-0
lines changed Expand file tree Collapse file tree 6 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+
3
+ patch -p1 < strncpy.patch
4
+
5
+ autoreconf -i
6
+
7
+ ./configure \
8
+ --prefix=/usr
9
+
10
+ make
11
+ make DESTDIR=" $1 " install
Original file line number Diff line number Diff line change
1
+ c0d70a7e9601e24015f97b5573ffb134e95e7f373da700c93fe5055f6a05da90 1.2.0.tar.gz
2
+ 2c5bfbdc119795dcd8531f29a3d9b396b6db8962b336833252088ef1b3c5d5e2 strncpy.patch
Original file line number Diff line number Diff line change
1
+ autoconf make
2
+ automake make
3
+ libX11
4
+ libXmu
5
+ libXt
Original file line number Diff line number Diff line change
1
+ diff --git xsel.c xsel.c
2
+ index 79cc68b..556585e 100644
3
+ --- xsel.c
4
+ +++ xsel.c
5
+ @@ -1983,7 +1983,7 @@ main(int argc, char *argv[])
6
+ dont_output = True;
7
+ } else if (OPT("--logfile") || OPT("-l")) {
8
+ i++; if (i >= argc) goto usage_err;
9
+ - strncpy (logfile, argv[i], MAXFNAME);
10
+ + strncpy (logfile, argv[i], MAXFNAME-1);
11
+ } else {
12
+ goto usage_err;
13
+ }
Original file line number Diff line number Diff line change
1
+ https://github.com/kfish/xsel/archive/1.2.0.tar.gz
2
+ patches/strncpy.patch
Original file line number Diff line number Diff line change
1
+ 1.2.0 1
You can’t perform that action at this time.
0 commit comments