Hello community, here is the log from the commit of package chemtool checked in at Thu Dec 7 19:27:20 CET 2006. -------- --- chemtool/chemtool.changes 2006-11-10 12:21:25.000000000 +0100 +++ /mounts/work_src_done/STABLE/chemtool/chemtool.changes 2006-12-05 16:19:33.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Dec 5 16:19:01 CET 2006 - prusnak@suse.cz + +- fixed comparison with string literal [#224840] + +------------------------------------------------------------------- New: ---- chemtool-1.6.9-zoom.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ chemtool.spec ++++++ --- /var/tmp/diff_new_pack.5d3q5C/_old 2006-12-07 19:26:22.000000000 +0100 +++ /var/tmp/diff_new_pack.5d3q5C/_new 2006-12-07 19:26:22.000000000 +0100 @@ -15,8 +15,8 @@ %define name0 cht Summary: Program for Drawing 2D Organic Molecules Version: 1.6.9 -Release: 18 -License: GNU General Public License (GPL) - all versions +Release: 23 +License: GNU General Public License (GPL) PreReq: shared-mime-info Group: Productivity/Graphics/Other Source: %{name}-%{version}.tar.bz2 @@ -24,6 +24,7 @@ Patch: %{name}-%{version}-Makefile.diff Patch1: %{name}-%{version}-mime.diff Patch2: %{name}-%{version}-memmove.diff +Patch3: %{name}-%{version}-zoom.diff URL: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -45,6 +46,7 @@ %patch %patch1 %patch2 +%patch3 %build CFLAGS=$RPM_OPT_FLAGS ./configure \ @@ -91,6 +93,8 @@ /usr/share/mime/packages/*.xml %changelog -n chemtool +* Tue Dec 05 2006 - prusnak@suse.cz +- fixed comparison with string literal [#224840] * Fri Nov 10 2006 - ro@suse.de - fix manpage permissions * Thu Aug 03 2006 - anosek@suse.cz ++++++ chemtool-1.6.9-zoom.diff ++++++ --- main.c +++ main.c @@ -1190,7 +1190,7 @@ Zoom (GtkWidget * mainw, gpointer inout) /* increase or decrease zoom scale (two steps to either side ) */ { - if ((char *) inout != "0") + if (inout && strcmp((char *)inout,"0")) { if (zoom_factor != 0) zoom_factor--; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org