rpms/ncurses/F-7 ncurses-5.6-20070812-newfield.patch, NONE, 1.1 ncurses.spec, 1.75, 1.76

Miroslav Lichvar (mlichvar) fedora-extras-commits at redhat.com
Tue Oct 16 12:01:02 UTC 2007


Author: mlichvar

Update of /cvs/pkgs/rpms/ncurses/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16354

Modified Files:
	ncurses.spec 
Added Files:
	ncurses-5.6-20070812-newfield.patch 
Log Message:
- allocate additional working buffers in new_field (#310071)


ncurses-5.6-20070812-newfield.patch:

--- NEW FILE ncurses-5.6-20070812-newfield.patch ---
diff -up ncurses-5.6/form/fld_def.c.newfield ncurses-5.6/form/fld_def.c
--- ncurses-5.6/form/fld_def.c.newfield	2007-10-12 14:23:46.000000000 +0200
+++ ncurses-5.6/form/fld_def.c	2007-10-12 14:26:03.000000000 +0200
@@ -305,7 +305,7 @@ new_field(int rows, int cols, int frow, 
 
 #if USE_WIDEC_SUPPORT
       New_Field->working = newpad(1, Buffer_Length(New_Field) + 1);
-      New_Field->expanded = (char **)calloc(1 + (unsigned)rows, sizeof(char *));
+      New_Field->expanded = (char **)calloc(1 + (unsigned)nbuf, sizeof(char *));
 #endif
 
       if (_nc_Copy_Type(New_Field, &default_field))


Index: ncurses.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ncurses/F-7/ncurses.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- ncurses.spec	10 Oct 2007 11:19:55 -0000	1.75
+++ ncurses.spec	16 Oct 2007 12:00:25 -0000	1.76
@@ -1,7 +1,7 @@
 Summary: A terminal handling library
 Name: ncurses
 Version: 5.6
-Release: 8.20070812%{?dist}
+Release: 9.20070812%{?dist}
 License: MIT
 Group: System Environment/Libraries
 URL: http://invisible-island.net/ncurses/ncurses.html
@@ -17,6 +17,7 @@
 Patch12: ncurses-5.6-20070812-comphash.patch
 Patch13: ncurses-5.6-20070812-pad.patch
 Patch14: ncurses-5.6-20070812-fieldbuf.patch
+Patch15: ncurses-5.6-20070812-newfield.patch
 BuildRequires: gpm-devel
 BuildRequires: diffutils
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -62,6 +63,7 @@
 %patch12 -p1 -b .comphash
 %patch13 -p1 -b .pad
 %patch14 -p1 -b .fieldbuf
+%patch15 -p1 -b .newfield
 
 # this will be in documentation, drop executable bits
 chmod 644 test/*
@@ -191,6 +193,9 @@
 rm -rf ${RPM_BUILD_ROOT}
 
 %changelog
+* Tue Oct 16 2007 Miroslav Lichvar <mlichvar at redhat.com> 5.6-9.20070812.fc7
+- allocate additional working buffers in new_field (#310071)
+
 * Wed Oct 10 2007 Miroslav Lichvar <mlichvar at redhat.com> 5.6-8.20070812.fc7
 - don't write beyond field buffer in form driver (#310071)
 




More information about the fedora-extras-commits mailing list