diff -Naur OpenSceneGraph-2.8.2.orig/src/osgPlugins/3ds/mesh.cpp OpenSceneGraph-2.8.2/src/osgPlugins/3ds/mesh.cpp --- OpenSceneGraph-2.8.2.orig/src/osgPlugins/3ds/mesh.cpp 2006-08-21 17:07:31.000000000 +0200 +++ OpenSceneGraph-2.8.2/src/osgPlugins/3ds/mesh.cpp 2010-11-03 01:59:17.531418640 +0100 @@ -93,8 +93,11 @@ faces=lib3ds_word_read(f); for (i=0; i<faces; ++i) { index=lib3ds_word_read(f); - ASSERT(index<mesh->faces); - strcpy(mesh->faceL[index].material, name); + if (index<mesh->faces) { + strncpy(mesh->faceL[index].material, name, 64); + } else { + // TODO warning + } } } break;