- Fixed 64bit problem with x11 display (#167508)

This commit is contained in:
Phil Knirsch 2005-10-21 14:37:20 +00:00
parent 3dc2180194
commit 5498773fc6
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -uNr gnuplot-4.0.0.orig/src/gplt_x11.c gnuplot-4.0.0/src/gplt_x11.c
--- gnuplot-4.0.0.orig/src/gplt_x11.c 2004-04-13 19:23:53.000000000 +0200
+++ gnuplot-4.0.0/src/gplt_x11.c 2005-10-15 19:23:38.000000000 +0200
@@ -1104,7 +1104,7 @@
read_input()
{
static int rdbuf_size = 10 * Nbuf;
- static char rdbuf[10 * Nbuf - 1];
+ static char rdbuf[10 * Nbuf];
static int total_chars;
static int rdbuf_offset;
static int buf_offset;

View File

@ -1,11 +1,12 @@
Summary: A program for plotting mathematical expressions and data.
Name: gnuplot
Version: 4.0.0
Release: 8
Release: 9
License: Redistributable, with restrictions
Group: Applications/Engineering
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source2: gnuplot-init.el
Patch0: gnuplot-4.0.0-x11segv.patch
BuildPrereq: libpng-devel, tetex-latex, zlib-devel, xorg-x11-devel, emacs
BuildRequires: texinfo, readline-devel
Requires: libpng
@ -32,6 +33,7 @@ nicely interacts and integrates into emacs.
%prep
%setup -q
%patch0 -p 1 -b .x11segv
%build
%configure --with-readline=gnu --with-png --without-linux-vga \
@ -89,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Oct 21 2005 Phil Knirsch <pknirsch@redhat.com> 4.0.0-9
- Fixed 64bit problem with x11 display (#167508)
* Fri Sep 02 2005 Phil Knirsch <pknirsch@redhat.com> 4.0.0-8
- Fixed missing Requires: emacs for the gnuplot-emacs package
- Added a gnuplot-init.el file for startup (#151122)