diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-06-16 20:28:51 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-06-16 20:33:45 +0200 |
commit | 0afdd48a8638835d44749a51085da8c2756c0d56 (patch) | |
tree | 586191c9689a4f9b1018c23317fe1bbf99cd518f /x11-wm/ctwm/files | |
parent | net-dialup/freeradius: Drop old (diff) | |
download | gentoo-0afdd48a8638835d44749a51085da8c2756c0d56.tar.gz gentoo-0afdd48a8638835d44749a51085da8c2756c0d56.tar.bz2 gentoo-0afdd48a8638835d44749a51085da8c2756c0d56.zip |
x11-wm/ctwm: Fix multiple screens (#625620 by Manfred Knick)
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'x11-wm/ctwm/files')
-rw-r--r-- | x11-wm/ctwm/files/ctwm-4.0.1-m4.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-wm/ctwm/files/ctwm-4.0.1-m4.patch b/x11-wm/ctwm/files/ctwm-4.0.1-m4.patch new file mode 100644 index 000000000000..94aa5a02d822 --- /dev/null +++ b/x11-wm/ctwm/files/ctwm-4.0.1-m4.patch @@ -0,0 +1,21 @@ +=== modified file 'parse_m4.c' +--- ctwm-4.0.1____orig/parse_m4.c 2016-05-03 20:19:31 +0000 ++++ ctwm-4.0.1____MaFu/parse_m4.c 2017-06-13 10:37:46 +0000 +@@ -140,12 +140,15 @@ + char client[MAXHOSTNAME], server[MAXHOSTNAME], *colon; + struct hostent *hostname; + char *vc, *color; +- static char tmp_name[] = "/tmp/ctwmrcXXXXXX"; ++#define TMPLFILE "/tmp/ctwmrcXXXXXX" ++ static char tmp_name[sizeof(TMPLFILE)]; + int fd; + FILE *tmpf; + char *user; + + /* Create temp file */ ++ strcpy(tmp_name, TMPLFILE); ++#undef TMPLFILE + fd = mkstemp(tmp_name); + if(fd < 0) { + perror("mkstemp failed in m4_defs"); + |