mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Fix segfaults on amd64
Pass maintainership to submitter PR: ports/152580 Submitted by: Rainer Hurling <rhurlin at gwdg.de>
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
|
||||
PORTNAME= wmupmon
|
||||
PORTVERSION= 0.1.3
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= sysutils windowmaker
|
||||
MASTER_SITES= http://j-z-s.com/projects/downloads/
|
||||
MASTER_SITES= http://www.dockapps.org/files/188/547/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= rhurlin@gwdg.de
|
||||
COMMENT= An uptime showing dockapp with a similar look to wmcpuload
|
||||
|
||||
USE_BZIP2= yes
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
MD5 (wmupmon-0.1.3.tar.bz2) = 5de5cf7c074f15bb5d8d7d6beb5f4268
|
||||
SHA256 (wmupmon-0.1.3.tar.bz2) = 7583f163fa472ec72a4f952c2ece8648a3ca709e4594b2b1591987671b0f38bc
|
||||
SIZE (wmupmon-0.1.3.tar.bz2) = 90108
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
--- src/main.c 2004-12-11 19:07:21.000000000 +0000
|
||||
+++ src/main.c 2007-01-31 12:20:47.000000000 +0000
|
||||
@@ -66,10 +66,8 @@
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i, a, aa, b, bb;
|
||||
- char* real_off_xpm[(style == 2 ? sizeof(backlight2_off_xpm) :
|
||||
- sizeof(backlight_off_xpm))];
|
||||
- char* real_on_xpm[(style == 2 ? sizeof(backlight2_on_xpm) :
|
||||
- sizeof(backlight_on_xpm))];
|
||||
+ char** real_off_xpm;
|
||||
+ char** real_on_xpm;
|
||||
XEvent event;
|
||||
XpmColorSymbol colors[2] = { {"Back0", NULL, 0}, {"Back1", NULL, 0} };
|
||||
int ncolor = 0;
|
||||
@@ -79,20 +77,12 @@
|
||||
|
||||
/* setup pixmap to use - this is ugly but it works */
|
||||
|
||||
- a = sizeof(backlight2_off_xpm);
|
||||
- aa = sizeof(backlight2_on_xpm);
|
||||
- b = sizeof(backlight_off_xpm);
|
||||
- bb = sizeof(backlight_on_xpm);
|
||||
if(style == 2){
|
||||
- for(i=0; i<a; i++)
|
||||
- real_off_xpm[i] = backlight2_off_xpm[i];
|
||||
- for(i=0; i<aa; i++)
|
||||
- real_on_xpm[i] = backlight2_on_xpm[i];
|
||||
+ real_off_xpm = backlight2_off_xpm;
|
||||
+ real_on_xpm = backlight2_on_xpm;
|
||||
} else {
|
||||
- for(i=0; i<b; i++)
|
||||
- real_off_xpm[i] = backlight_off_xpm[i];
|
||||
- for(i=0; i<bb; i++)
|
||||
- real_on_xpm[i] = backlight_on_xpm[i];
|
||||
+ real_off_xpm = backlight_off_xpm;
|
||||
+ real_on_xpm = backlight_on_xpm;
|
||||
}
|
||||
|
||||
/* Initialize Application */
|
||||
Reference in New Issue
Block a user