Hello community, here is the log from the commit of package opensc checked in at Thu Mar 1 22:07:42 CET 2007. -------- --- opensc/opensc.changes 2006-10-02 18:50:15.000000000 +0200 +++ /mounts/work_src_done/STABLE/opensc/opensc.changes 2007-02-27 12:15:42.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Feb 27 12:12:30 CET 2007 - mvaner@suse.cz + +- Fixing dodgy use of sizeof (#238660) + - sizeof.patch + +------------------------------------------------------------------- New: ---- opensc-0.11.1-sizeof.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opensc.spec ++++++ --- /var/tmp/diff_new_pack.hb6073/_old 2007-03-01 22:07:21.000000000 +0100 +++ /var/tmp/diff_new_pack.hb6073/_new 2007-03-01 22:07:21.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package opensc (Version 0.11.1) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -20,14 +20,15 @@ %endif URL: http://www.opensc-project.org/opensc/ Version: 0.11.1 -Release: 1 +Release: 32 Group: Hardware/Other Summary: OpenSC Smart Card Library -License: LGPL +License: GNU Library General Public License v. 2.0 and 2.1 (LGPL) Requires: pcsc-lite BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: opensc-%{version}.tar.bz2 Source1: http://www.opensc.org/files/doc/init_perso_guide.html +Patch1: %{name}-%{version}-sizeof.patch AutoReqProv: on %description @@ -68,6 +69,7 @@ %prep %setup -q +%patch1 %build rm -f aclocal/libtool.m4 @@ -121,7 +123,10 @@ %_libdir/*.a %_libdir/pkgconfig/*.pc -%changelog -n opensc +%changelog +* Tue Feb 27 2007 - mvaner@suse.cz +- Fixing dodgy use of sizeof (#238660) + - sizeof.patch * Mon Oct 02 2006 - sbrabec@suse.cz - Updated to version 0.11.1: * Update for piv pkcs#15 emulation ++++++ opensc-0.11.1-sizeof.patch ++++++ --- src/tools/cryptoflex-tool.c +++ src/tools/cryptoflex-tool.c @@ -501,7 +501,7 @@ if (keysize == 0) break; idx += keysize; - for (i = 0; i < sizeof(sizes)/sizeof(int); i++) + for (i = 0; i < sizeof(sizes)/sizeof(*sizes); i++) if (sizes[i] == keysize) mod_len = mod_lens[i]; if (mod_len < 0) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de