[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/gnome-chemistry-utils/FC-5 19808.patch, NONE, 1.1 gnome-chemistry-utils.spec, 1.7, 1.8



Author: belegdol

Update of /cvs/extras/rpms/gnome-chemistry-utils/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16680

Modified Files:
	gnome-chemistry-utils.spec 
Added Files:
	19808.patch 
Log Message:
* Mon May  7 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-2
- Fixed gchemtable crash (RH #239056, Savannah #19808)


19808.patch:

--- NEW FILE 19808.patch ---
Index: programs/gchemtable-elt.cc
===================================================================
RCS file: /cvsroot/gchemutils/gchemutils/programs/Attic/gchemtable-elt.cc,v
retrieving revision 1.7.2.4
diff -p -u -5 -r1.7.2.4 gchemtable-elt.cc
--- programs/gchemtable-elt.cc	7 Apr 2007 15:06:01 -0000	1.7.2.4
+++ programs/gchemtable-elt.cc	7 May 2007 16:54:15 -0000
@@ -243,13 +243,13 @@ GChemTableElt::GChemTableElt (GChemTable
 	int maxspin = 0;
 	if (radii) while (*radii) {
 		if (((*radii)->type == GCU_IONIC) && !strcmp ((*radii)->scale, "Shannon")) {
 			j = radii_list.begin ();
 			jend = radii_list.end ();
-			while (((j != jend) && ((*j)->charge < (*radii)->charge)) || 
-				(((*j)->charge == (*radii)->charge) && ((*j)->cn < (*radii)->cn)) ||
-				(((*j)->cn == (*radii)->cn) && ((*j)->spin < (*radii)->spin)))
+			while ((j != jend) && (((*j)->charge < (*radii)->charge) || 
+				(((*j)->charge == (*radii)->charge) && ((*j)->cn < (*radii)->cn) ||
+				(((*j)->cn == (*radii)->cn) && ((*j)->spin < (*radii)->spin)))))
 				j++;
 			radii_list.insert (j, *radii);
 			if ((*radii)->spin > maxspin)
 				maxspin = (*radii)->spin;
 		}


Index: gnome-chemistry-utils.spec
===================================================================
RCS file: /cvs/extras/rpms/gnome-chemistry-utils/FC-5/gnome-chemistry-utils.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- gnome-chemistry-utils.spec	9 Apr 2007 15:43:12 -0000	1.7
+++ gnome-chemistry-utils.spec	7 May 2007 18:40:44 -0000	1.8
@@ -1,12 +1,13 @@
 Name:           gnome-chemistry-utils
 Version:        0.6.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A set of chemical utilities
 
 Group:          Applications/Engineering
 License:        GPL
 URL:            http://www.nongnu.org/gchemutils/
 Source0:        http://download.savannah.nongnu.org/releases/gchemutils/%{name}-%{version}.tar.bz2
+Patch0:         19808.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  openbabel-devel
@@ -61,6 +62,7 @@
 
 %prep
 %setup -q
+%patch0 -p0 -b .crashfix
 
 
 %build
@@ -134,6 +136,9 @@
 
 
 %changelog
+* Mon May  7 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-2
+- Fixed gchemtable crash (RH #239056, Savannah #19808)
+
 * Mon Apr  9 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-1
 - Updated to 0.6.5
 - Switched to bzip2 sources
@@ -162,4 +167,4 @@
 - Preserve timestamps
 
 * Sat Dec 02 2006 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
-- Initial RPM release
\ No newline at end of file
+- Initial RPM release


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]