- Fix core dump on AMD64

- Pass maintainership to submitter

PR:		135866
Submitted by:	"J.R. Oldroyd" <fbsd@opal.com>
This commit is contained in:
Martin Wilke 2009-07-01 12:33:11 +00:00
parent 749828e25d
commit e904edb776
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236856
3 changed files with 41 additions and 2 deletions

View file

@ -7,12 +7,12 @@
PORTNAME= xfce4-cpugraph-plugin PORTNAME= xfce4-cpugraph-plugin
PORTVERSION= 0.3.0 PORTVERSION= 0.3.0
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= sysutils xfce CATEGORIES= sysutils xfce
MASTER_SITES= http://goodies.xfce.org/releases/${PORTNAME}/ MASTER_SITES= http://goodies.xfce.org/releases/${PORTNAME}/
DIST_SUBDIR= xfce4 DIST_SUBDIR= xfce4
MAINTAINER= ports@FreeBSD.org MAINTAINER= fbsd@opal.com
COMMENT= XFce4 systemload plugin with multiple CPU display modes COMMENT= XFce4 systemload plugin with multiple CPU display modes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes

View file

@ -0,0 +1,20 @@
--- panel-plugin/cpu.c.orig 2005-10-09 05:06:46.000000000 -0400
+++ panel-plugin/cpu.c 2009-06-15 18:29:08.000000000 -0400
@@ -606,7 +606,7 @@
op->m_Notebook = gtk_notebook_new ();
gtk_container_set_border_width (GTK_CONTAINER (op->m_Notebook),
BORDER - 2);
- label = gtk_label_new (_("Apperance"));
+ label = gtk_label_new (_("Appearance"));
gtk_notebook_append_page (GTK_NOTEBOOK (op->m_Notebook),
GTK_WIDGET (vbox2), GTK_WIDGET (label));
label = gtk_label_new (_("Advanced"));
@@ -952,7 +952,7 @@
SetHistorySize (CPUGraph * base, int size)
{
base->m_History =
- (long *) realloc (base->m_History, size * sizeof (long));
+ (int *) realloc (base->m_History, size * sizeof (int));
int i;
for (i = size - 1; i >= base->m_Values; i--)

View file

@ -0,0 +1,19 @@
--- panel-plugin/cpu.h.orig 2005-10-09 05:19:34.000000000 -0400
+++ panel-plugin/cpu.h 2009-06-15 18:07:25.000000000 -0400
@@ -10,6 +10,7 @@
#include <math.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <libxfce4util/libxfce4util.h>
#include <libxfcegui4/libxfcegui4.h>
@@ -83,7 +84,7 @@
guint m_TimeoutID; // Timeout ID for the tooltip;
long m_CPUUsage;
- long *m_History;
+ int *m_History;
int m_Values;
int m_Orientation;