Hello community, here is the log from the commit of package plib.1061 for openSUSE:12.1:Update checked in at 2012-11-20 10:46:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.1:Update/plib.1061 (Old) and /work/SRC/openSUSE:12.1:Update/.plib.1061.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plib.1061", Maintainer is "" Changes: -------- New Changes file: --- /dev/null 2012-10-22 00:44:18.403455820 +0200 +++ /work/SRC/openSUSE:12.1:Update/.plib.1061.new/plib.changes 2012-11-20 10:46:43.000000000 +0100 @@ -0,0 +1,227 @@ +------------------------------------------------------------------- +Sun Nov 4 19:07:11 UTC 2012 - reddw...@opensuse.org + +- Add plib-1.8.5-CVE-2011-4620.patch (bnc#738207) and + plib-1.8.5-CVE-2012-4552.patch (bnc#787305) + +------------------------------------------------------------------- +Fri Jan 9 22:42:23 CET 2009 - crrodrig...@suse.de + +- remove static libraries and "la" files + +------------------------------------------------------------------- +Tue Mar 11 13:10:50 CET 2008 - prus...@suse.cz + +- updated to 1.8.5 + * removed several widgets from pui/, which were declared + obsolete since a long time. Most of them are now available + in puAux/ + * several fixes and improvements to puAuxList + * puInputText scrolling fixed + * Improved DirectX loader + * Check ownership before deleting in ssgSimpleList + * Fixed netSocket + * Fixed mem leak in ssgVertSplitter + * Fixed pw window sizes on win32 + * Added pview ssg-example + * Fix clock delta in first call + * Made colour of listbox changable + * Fixed text with negative coordinates + * Fixed misc bugs in puAuxLargeInput + * Allow the user to activate a widget with custom mouse button + * Made material loading from wavefront models more robust + * Handle linux joysticks with a lot of axes + * Avoid specular anomalies in 3ds files + * Added a demo for ssgaShapes + * Fixed the diameter of ssgaSphere + * Fixed inability to add colour to the ssgaTeapot + * Remove scale dep in ssgaFire +- fixed strncat usage (strncat.patch) +- dropped obsolete patches: + * extraqual.diff (included in update) + * joystick.diff (included in update) + +------------------------------------------------------------------- +Thu Jan 10 13:51:12 CET 2008 - lmichno...@suse.cz + +- added glibc-devel, xorg-x11-devel as Requires + +------------------------------------------------------------------- +Fri Jan 4 13:25:25 CET 2008 - lmichno...@suse.cz + +- fixed deprecated run_ldconfig macro +- no need to use %suse_update_config when autotools are called + anyway (Other dists get chocked in BuildService.) +- no need to pack files NEWS and INSTALL +- compiling with no-strict-aliasing + +------------------------------------------------------------------- +Wed May 23 11:50:26 CEST 2007 - prus...@suse.cz + +- move devel files to plib-devel subpackage + +------------------------------------------------------------------- +Wed Jan 25 21:40:21 CET 2006 - m...@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Oct 20 18:23:27 CEST 2005 - m...@suse.de + +- remove extra qualification + +------------------------------------------------------------------- +Fri Feb 25 11:44:24 CET 2005 - r...@suse.de + +- fix filelist (packing complete /usr/lib is not possible) + +------------------------------------------------------------------- +Wed Feb 23 16:38:03 CET 2005 - mjan...@suse.cz + +- build shared libraries (needed by torcs) + +------------------------------------------------------------------- +Wed Feb 02 13:50:12 CET 2005 - mjan...@suse.cz + +- update to 1.8.4 (needed by FlightGear) + +------------------------------------------------------------------- +Fri Aug 13 17:26:10 CEST 2004 - mjan...@suse.cz + +- update to 1.8.3 + +------------------------------------------------------------------- +Sat Jan 10 12:45:29 CET 2004 - adr...@suse.de + +- add %defattr + +------------------------------------------------------------------- +Mon Oct 13 14:46:19 CEST 2003 - r...@suse.de + +- remove explicit requires for mesa + +------------------------------------------------------------------- +Thu Jul 31 19:56:39 CEST 2003 - mjan...@suse.cz + +- use %run_ldconfig + +------------------------------------------------------------------- +Tue Dec 10 13:50:33 CET 2002 - pre...@suse.cz + +- fixed brace-enclosed initialization (due to gcc-3.3) + +------------------------------------------------------------------- +Thu Oct 24 18:51:00 CEST 2002 - pre...@suse.cz + +- updated to version 1.6.0 + +------------------------------------------------------------------- +Wed Aug 21 12:16:59 CEST 2002 - nadvor...@suse.cz + +- use RPM_OPT_FLAGS instead of -O6 + +------------------------------------------------------------------- +Thu Jan 10 11:14:22 CET 2002 - rvas...@suse.cz + +- use %{_libdir} + +------------------------------------------------------------------- +Fri Nov 9 16:53:17 CET 2001 - rvas...@suse.cz + +- fix to compile with new automake + +------------------------------------------------------------------- +Thu Nov 8 18:39:45 CET 2001 - r...@suse.de + +- use mesa-devel-packages in neededforbuild + +------------------------------------------------------------------- +Thu Jul 26 12:25:01 CEST 2001 - rvas...@suse.cz + +- update to version 1.4.2 + +------------------------------------------------------------------- +Fri Jul 13 17:21:15 CEST 2001 - rvas...@suse.cz + +- update to version 1.4.1 + +------------------------------------------------------------------- +Mon Jun 4 10:37:15 CEST 2001 - rvas...@suse.cz + +- spec file cleanup +- bzip2 sources + +------------------------------------------------------------------- +Thu Mar 15 18:23:12 CET 2001 - r...@suse.de + +- changed neededforbuild <mesaglu> to <xf86glu> +- changed neededforbuild <mesaglu-devel> to <xf86glu-devel> + +------------------------------------------------------------------- +Tue Mar 13 16:57:50 CET 2001 - r...@suse.de + +- added mesaglut + +------------------------------------------------------------------- +Fri Mar 9 01:40:36 CET 2001 - r...@suse.de + +- added mesaglu + +------------------------------------------------------------------- +Wed Mar 7 16:58:40 CET 2001 - r...@suse.de + +- changed neededforbuild <mesadev> to <mesa-devel> +- added xf86 to neededforbuild + +------------------------------------------------------------------- +Fri Feb 9 12:08:05 CET 2001 - r...@suse.de + +- include float.h in sg.h + +------------------------------------------------------------------- +Mon Aug 7 13:37:19 CEST 2000 - s...@suse.cz + +- upgrade to 1.2.0 + +------------------------------------------------------------------- +Mon May 22 15:23:20 CEST 2000 - s...@suse.cz + +- mesadev added to neededforbuild + +------------------------------------------------------------------- +Thu May 4 13:01:47 CEST 2000 - s...@suse.cz + +- upgrade to 1.1.11 + +------------------------------------------------------------------- +Fri Apr 21 15:04:46 CEST 2000 - s...@suse.cz ++++ 30 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:12.1:Update/.plib.1061.new/plib.changes New: ---- plib-1.8.5-CVE-2011-4620.patch plib-1.8.5-CVE-2012-4552.patch plib-1.8.5-intptr_t.patch plib-1.8.5-shared.patch plib-1.8.5-strncat.patch plib-1.8.5.tar.bz2 plib.changes plib.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plib.spec ++++++ # # spec file for package plib # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: plib BuildRequires: freeglut-devel BuildRequires: gcc-c++ BuildRequires: libdrm-devel BuildRequires: xorg-x11 Version: 1.8.5 Release: 0 Url: http://plib.sourceforge.net/ Summary: A collection of useful Game libraries License: LGPL-2.1+ Group: System/Libraries Source: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-shared.patch Patch1: %{name}-%{version}-intptr_t.patch Patch2: %{name}-%{version}-strncat.patch Patch3: plib-1.8.5-CVE-2011-4620.patch Patch4: plib-1.8.5-CVE-2012-4552.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Plib contains a selection of libraries, that can be helpful for 3D game programming. It contains the following libraries: o JS - A Joystick interface o PUI - A simple GUI built on top of OpenGL o SG - Some Standard Geometry functions o SL - A Games-oriented Sound Library o SSG - A Simple Scene Graph API built on top of OpenGL Authors: -------- Steve Baker <sjbak...@airmail.net> %package devel Requires: plib = %{version} Summary: A collection of useful Game libraries Group: System/Libraries Requires: Mesa Requires: glibc-devel Requires: xorg-x11-devel %description devel Plib contains a selection of libraries, that can be helpful for 3D game programming. It contains the following libraries: o JS - A Joystick interface. o PUI - A simple GUI built on top of OpenGL o SG - Some Standard Geometry functions o SL - A Games-oriented Sound Library o SSG - A Simple Scene Graph API built on top of OpenGL Authors: -------- Steve Baker <sjbak...@airmail.net> %prep %setup -q %patch0 %patch1 %patch2 %patch3 %patch4 %build autoreconf -fiv export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --disable-static --with-pic %{__make} %{?jobs:-j%jobs} %install make DESTDIR=$RPM_BUILD_ROOT install %{__rm} -f %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog KNOWN_BUGS %doc NOTICE README README.GLUT TODO-1.6 TODO-2.0 TODO_AFTER135 %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/plib %{_libdir}/*.so %changelog ++++++ plib-1.8.5-CVE-2011-4620.patch ++++++ Index: src/util/ulError.cxx =================================================================== --- src/util/ulError.cxx.orig +++ src/util/ulError.cxx @@ -39,9 +39,11 @@ void ulSetError ( enum ulSeverity severi { va_list argp; va_start ( argp, fmt ) ; - vsprintf ( _ulErrorBuffer, fmt, argp ) ; + vsnprintf ( _ulErrorBuffer, sizeof(_ulErrorBuffer)-1, fmt, argp ) ; va_end ( argp ) ; - + + _ulErrorBuffer[sizeof(_ulErrorBuffer)-1] = '\0'; + if ( _ulErrorCB ) { (*_ulErrorCB)( severity, _ulErrorBuffer ) ; ++++++ plib-1.8.5-CVE-2012-4552.patch ++++++ Index: src/ssg/ssgParser.cxx =================================================================== --- src/ssg/ssgParser.cxx.orig +++ src/ssg/ssgParser.cxx @@ -57,18 +57,18 @@ void _ssgParser::error( const char *form char msgbuff[ 255 ]; va_list argp; - char* msgptr = msgbuff; - if (linenum) - { - msgptr += sprintf ( msgptr,"%s, line %d: ", - path, linenum ); - } - va_start( argp, format ); - vsprintf( msgptr, format, argp ); + vsnprintf( msgbuff, sizeof(msgbuff)-1, format, argp ); va_end( argp ); + + msgbuff[sizeof(msgbuff)-1] = '\0'; - ulSetError ( UL_WARNING, "%s", msgbuff ) ; + if (linenum) + { + ulSetError ( UL_WARNING, "%s, line %d: %s", path, linenum, msgbuff ) ; + } else { + ulSetError ( UL_WARNING, "%s", msgbuff ) ; + } } @@ -78,18 +78,18 @@ void _ssgParser::message( const char *fo char msgbuff[ 255 ]; va_list argp; - char* msgptr = msgbuff; - if (linenum) - { - msgptr += sprintf ( msgptr,"%s, line %d: ", - path, linenum ); - } - va_start( argp, format ); - vsprintf( msgptr, format, argp ); + vsnprintf( msgbuff, sizeof(msgbuff)-1, format, argp ); va_end( argp ); + + msgbuff[sizeof(msgbuff)-1] = '\0'; - ulSetError ( UL_DEBUG, "%s", msgbuff ) ; + if (linenum) + { + ulSetError ( UL_DEBUG, "%s, line %d: %s", path, linenum, msgbuff ) ; + } else { + ulSetError ( UL_DEBUG, "%s", msgbuff ) ; + } } // Opens the file and does a few internal calculations based on the spec. ++++++ plib-1.8.5-intptr_t.patch ++++++ --- src/ssg/ssgLoadFLT.cxx +++ src/ssg/ssgLoadFLT.cxx @@ -1289,8 +1289,8 @@ index = get16i(ptr + 28); /* texture index */ t = 0; if (index != -1) { - state->texs = t = splay(state->texs, (void *)index, ptrcmp); - if (t == 0 || t->key != (void *)index) { + state->texs = t = splay(state->texs, (void *)(intptr_t)index, ptrcmp); + if (t == 0 || t->key != (void *)(intptr_t)index) { /*ulSetError(UL_DEBUG, "[flt] undefined texture %d", index);*/ t = 0; } @@ -1362,8 +1362,8 @@ } else { index = get16i(ptr + 30); /* material index */ - state->mtls = t = splay(state->mtls, (void *)index, ptrcmp); - if (t && t->key == (void *)index) { + state->mtls = t = splay(state->mtls, (void *)(intptr_t)index, ptrcmp); + if (t && t->key == (void *)(intptr_t)index) { info.mtl = (float *)t->data; } else { @@ -1886,7 +1886,7 @@ stack[1] = PostClean(stack[1], attr[1]); if (stack[1] && instance >= 0) { - state->refs = sinsert(state->refs, (void *)instance, 0, ptrcmp); + state->refs = sinsert(state->refs, (void *)(intptr_t)instance, 0, ptrcmp); if (state->refs->data != (void *)-1) { ulSetError(UL_WARNING, "[flt] Instance %d redefined.", instance); ssgDeRefDelete((ssgEntity *) state->refs->data); @@ -2238,8 +2238,8 @@ PostLink(stack + sp - 1, attr + sp - 1, instance[sp], state); instance[sp] = -1; if (state->refs) { - state->refs = splay(state->refs, (void *)k, ptrcmp); - if (state->refs->key == (void *)k) { + state->refs = splay(state->refs, (void *)(intptr_t)k, ptrcmp); + if (state->refs->key == (void *)(intptr_t)k) { stack[sp] = (ssgEntity *)state->refs->data; } } @@ -2478,7 +2478,7 @@ if ((p = strrchr(file, '/'))) file = p + 1; index = get32i(ptr + len - 12); - state->texs = sinsert(state->texs, (void *)index, 0, ptrcmp); + state->texs = sinsert(state->texs, (void *)(intptr_t)index, 0, ptrcmp); if (state->texs->data == (void *)-1) { //fltTexture *tex = (fltTexture *)malloc(sizeof(fltTexture)); fltTexture *tex = new fltTexture; @@ -2505,7 +2505,7 @@ int i, j, n = (len - 4) / 184; for (i = 0; i < n; ++i) { float *mtl; - state->mtls = sinsert(state->mtls, (void *)i, 0, ptrcmp); + state->mtls = sinsert(state->mtls, (void *)(intptr_t)i, 0, ptrcmp); //state->mtls->data = malloc(sizeof(float)*14); state->mtls->data = new float[14]; mtl = (float *)state->mtls->data; @@ -2541,7 +2541,7 @@ case 113: /* Material */ index = get32i(ptr + 4); - state->mtls = sinsert(state->mtls, (void *)index, 0, ptrcmp); + state->mtls = sinsert(state->mtls, (void *)(intptr_t)index, 0, ptrcmp); if (state->mtls->data == (void *)-1) { float *mtl; int i; ++++++ plib-1.8.5-shared.patch ++++++ --- configure.in +++ configure.in @@ -36,7 +36,7 @@ AC_PROG_CXX AC_PROG_CXXCPP AC_PROG_INSTALL -AC_PROG_RANLIB +AC_PROG_LIBTOOL dnl Command line arguments --- src/fnt/Makefile.am +++ src/fnt/Makefile.am @@ -1,10 +1,10 @@ if BUILD_FNT -lib_LIBRARIES = libplibfnt.a +lib_LTLIBRARIES = libplibfnt.la include_HEADERS = fnt.h -libplibfnt_a_SOURCES = fnt.cxx fntTXF.cxx fntLocal.h fntBitmap.cxx +libplibfnt_la_SOURCES = fnt.cxx fntTXF.cxx fntLocal.h fntBitmap.cxx INCLUDES = -I$(top_srcdir)/src/sg -I$(top_srcdir)/src/util --- src/js/Makefile.am +++ src/js/Makefile.am @@ -1,10 +1,10 @@ if BUILD_JS -lib_LIBRARIES = libplibjs.a +lib_LTLIBRARIES = libplibjs.la include_HEADERS = js.h -libplibjs_a_SOURCES = js.cxx jsLinux.cxx jsLinuxOld.cxx jsMacOS.cxx \ +libplibjs_la_SOURCES = js.cxx jsLinux.cxx jsLinuxOld.cxx jsMacOS.cxx \ jsMacOSX.cxx jsWindows.cxx jsBSD.cxx \ jsNone.cxx --- src/net/Makefile.am +++ src/net/Makefile.am @@ -1,11 +1,11 @@ if BUILD_NET -lib_LIBRARIES = libplibnet.a +lib_LTLIBRARIES = libplibnet.la include_HEADERS = netBuffer.h netChannel.h netChat.h netMessage.h \ netMonitor.h netSocket.h net.h -libplibnet_a_SOURCES = netBuffer.cxx netChannel.cxx netChat.cxx \ +libplibnet_la_SOURCES = netBuffer.cxx netChannel.cxx netChat.cxx \ netMessage.cxx netMonitor.cxx netSocket.cxx INCLUDES = -I$(top_srcdir)/src/util --- src/psl/Makefile.am +++ src/psl/Makefile.am @@ -1,11 +1,11 @@ if BUILD_PSL -lib_LIBRARIES = libplibpsl.a +lib_LTLIBRARIES = libplibpsl.la include_HEADERS = psl.h -libplibpsl_a_SOURCES = psl.cxx pslCodeGen.cxx pslContext.cxx \ +libplibpsl_la_SOURCES = psl.cxx pslCodeGen.cxx pslContext.cxx \ pslCompiler.cxx pslSymbols.cxx pslToken.cxx \ pslExpression.cxx pslProgram.cxx pslDump.cxx \ pslError.cxx pslFileIO.cxx pslCompiler.h \ --- src/puAux/Makefile.am +++ src/puAux/Makefile.am @@ -1,10 +1,10 @@ if BUILD_PUAUX -lib_LIBRARIES = libplibpuaux.a +lib_LTLIBRARIES = libplibpuaux.la include_HEADERS = puAux.h puAuxLocal.h -libplibpuaux_a_SOURCES = puAux.cxx \ +libplibpuaux_la_SOURCES = puAux.cxx \ puAuxBiSlider.cxx \ puAuxBiSliderWithEnds.cxx \ puAuxComboBox.cxx \ --- src/pui/Makefile.am +++ src/pui/Makefile.am @@ -1,10 +1,10 @@ if BUILD_PUI -lib_LIBRARIES = libplibpu.a +lib_LTLIBRARIES = libplibpu.la include_HEADERS = pu.h puGLUT.h puFLTK.h puSDL.h puNative.h puPW.h -libplibpu_a_SOURCES = \ +libplibpu_la_SOURCES = \ pu.cxx puBox.cxx puButton.cxx puButtonBox.cxx \ puArrowButton.cxx puDialogBox.cxx puFrame.cxx puGroup.cxx \ puInput.cxx puInterface.cxx puLocal.h puMenuBar.cxx \ --- src/pw/Makefile.am +++ src/pw/Makefile.am @@ -1,10 +1,10 @@ if BUILD_PW -lib_LIBRARIES = libplibpw.a +lib_LTLIBRARIES = libplibpw.la include_HEADERS = pw.h -libplibpw_a_SOURCES = pw.cxx pwX11.cxx pwWindows.cxx pwMacOSX.cxx +libplibpw_la_SOURCES = pw.cxx pwX11.cxx pwWindows.cxx pwMacOSX.cxx INCLUDES = -I$(top_srcdir)/src/util --- src/sg/Makefile.am +++ src/sg/Makefile.am @@ -1,10 +1,10 @@ if BUILD_SG -lib_LIBRARIES = libplibsg.a +lib_LTLIBRARIES = libplibsg.la include_HEADERS = sg.h -libplibsg_a_SOURCES = sg.cxx sgd.cxx \ +libplibsg_la_SOURCES = sg.cxx sgd.cxx \ sgIsect.cxx sgdIsect.cxx \ sgPerlinNoise.cxx --- src/sl/Makefile.am +++ src/sl/Makefile.am @@ -1,16 +1,16 @@ if BUILD_SL -lib_LIBRARIES = libplibsl.a libplibsm.a +lib_LTLIBRARIES = libplibsl.la libplibsm.la include_HEADERS = sl.h slPortability.h sm.h -libplibsl_a_SOURCES = \ +libplibsl_la_SOURCES = \ slDSP.cxx slSample.cxx slEnvelope.cxx \ slPlayer.cxx slMODPlayer.cxx slSamplePlayer.cxx \ slScheduler.cxx slMODdacio.cxx slMODfile.cxx \ slMODinst.cxx slMODnote.cxx slMODPrivate.h slMODfile.h -libplibsm_a_SOURCES = slPortability.h smMixer.cxx +libplibsm_la_SOURCES = slPortability.h smMixer.cxx INCLUDES = -I$(top_srcdir)/src/util --- src/ssg/Makefile.am +++ src/ssg/Makefile.am @@ -1,10 +1,10 @@ if BUILD_SSG -lib_LIBRARIES = libplibssg.a +lib_LTLIBRARIES = libplibssg.la include_HEADERS = ssg.h ssgconf.h ssgMSFSPalette.h ssgKeyFlier.h pcx.h -libplibssg_a_SOURCES = ssg.cxx ssgAnimation.cxx ssgBase.cxx \ +libplibssg_la_SOURCES = ssg.cxx ssgAnimation.cxx ssgBase.cxx \ ssgBaseTransform.cxx ssgBranch.cxx ssgContext.cxx ssgCutout.cxx \ ssgDList.cxx ssgEntity.cxx ssgIsect.cxx ssgLeaf.cxx ssgList.cxx \ ssgLoadDOF.cxx ssgLoadAC.cxx \ --- src/ssgAux/Makefile.am +++ src/ssgAux/Makefile.am @@ -1,6 +1,6 @@ if BUILD_SSGAUX -lib_LIBRARIES = libplibssgaux.a +lib_LTLIBRARIES = libplibssgaux.la include_HEADERS = ssgAux.h \ ssgaShapes.h \ @@ -13,7 +13,7 @@ ssgaFire.h \ ssgaBillboards.h -libplibssgaux_a_SOURCES = ssgAux.cxx \ +libplibssgaux_la_SOURCES = ssgAux.cxx \ ssgaShapes.cxx \ ssgaPatch.cxx \ ssgaParticleSystem.cxx \ --- src/util/Makefile.am +++ src/util/Makefile.am @@ -1,10 +1,10 @@ if BUILD_UL -lib_LIBRARIES = libplibul.a +lib_LTLIBRARIES = libplibul.la include_HEADERS = ul.h ulRTTI.h -libplibul_a_SOURCES = ul.cxx ulClock.cxx ulError.cxx ulLinkedList.cxx \ +libplibul_la_SOURCES = ul.cxx ulClock.cxx ulError.cxx ulLinkedList.cxx \ ulList.cxx ulLocal.h ulRTTI.cxx endif ++++++ plib-1.8.5-strncat.patch ++++++ --- src/ssg/ssgLoadOBJ.cxx +++ src/ssg/ssgLoadOBJ.cxx @@ -220,8 +220,8 @@ *strrchr(mtl_filename, '/') = 0; if(NULL!=strrchr(mtl_filename, '\\')) *strrchr(mtl_filename, '\\') = 0; - strncat(mtl_filename, "\\", 1024); - strncat(mtl_filename, fname, 1024); + strncat(mtl_filename, "\\", sizeof(mtl_filename)-strlen(mtl_filename)-1); + strncat(mtl_filename, fname, sizeof(mtl_filename)-strlen(mtl_filename)-1); filein = fopen (mtl_filename,"r") ; if ( filein == 0 ) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org