star-3daw

Create star-3d geometries from OBJ files
git clone git://git.meso-star.fr/star-3daw.git
Log | Files | Refs | README | LICENSE

commit cf20bd4f69dd654415383be27263a9c01dc10e2a
parent e655d9b9149356015acb9894a9c94ded29cc9324
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 27 May 2015 12:12:08 +0200

Fix an issue in the definition of the mtl filepath

Diffstat:
Msrc/s3daw.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/s3daw.c b/src/s3daw.c @@ -312,7 +312,7 @@ shapes_create(struct s3daw* s3daw, const char* filename) mtllib_len = strlen(mtllib); res = darray_char_resize(&s3daw->mtllib, mtllib_len + 1/*'\0'*/); if(res != RES_OK) goto error; - strncpy(darray_char_data_get(&s3daw->mtllib) + dirname_len + 1, + strncpy(darray_char_data_get(&s3daw->mtllib) + dirname_len, mtllib, mtllib_len + 1); /* Load the material library */