diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2010-12-20 11:13:44 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2010-12-20 11:13:44 +0000 |
commit | 6e40d6b39347e1a54147265ae3366830e87e9197 (patch) | |
tree | 40e2e616ac34772d1a84c2c7c1ef74322d3ac2d0 /x11/wmctrl | |
parent | d3716aacad95ce9fa86bd97f24ef1e33d468c455 (diff) | |
download | ports-6e40d6b39347e1a54147265ae3366830e87e9197.tar.gz ports-6e40d6b39347e1a54147265ae3366830e87e9197.zip |
Notes
Diffstat (limited to 'x11/wmctrl')
-rw-r--r-- | x11/wmctrl/Makefile | 2 | ||||
-rw-r--r-- | x11/wmctrl/files/patch-main.c | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/x11/wmctrl/Makefile b/x11/wmctrl/Makefile index 8e84d1b12f4c..b0e00ddf55e3 100644 --- a/x11/wmctrl/Makefile +++ b/x11/wmctrl/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmctrl PORTVERSION= 1.07 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= x11 MASTER_SITES= http://sweb.cz/tripie/utils/wmctrl/dist/ diff --git a/x11/wmctrl/files/patch-main.c b/x11/wmctrl/files/patch-main.c new file mode 100644 index 000000000000..4af039d3cd07 --- /dev/null +++ b/x11/wmctrl/files/patch-main.c @@ -0,0 +1,12 @@ +--- main.c.orig 2005-01-29 03:31:33.000000000 +0000 ++++ main.c 2010-12-20 11:09:11.000000000 +0000 +@@ -1441,6 +1441,9 @@ + + /* null terminate the result to make string handling easier */ + tmp_size = (ret_format / 8) * ret_nitems; ++ /* Correct 64 Architecture implementation of 32 bit data */ ++ if (ret_format == 32) ++ tmp_size *= sizeof(long)/4; + ret = g_malloc(tmp_size + 1); + memcpy(ret, ret_prop, tmp_size); + ret[tmp_size] = '\0'; |