From fd3ec15ae46884154471b0fbfc78fe49fdf6ecd7 Mon Sep 17 00:00:00 2001 From: Timothee Besset Date: Sat, 25 Feb 2017 15:11:45 -0600 Subject: [PATCH] fix compiler warning, be more legible --- libs/picomodel/pm_fm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/picomodel/pm_fm.c b/libs/picomodel/pm_fm.c index 9201e27e..32bc2ee9 100644 --- a/libs/picomodel/pm_fm.c +++ b/libs/picomodel/pm_fm.c @@ -350,7 +350,7 @@ static picoModel_t *_fm_load( PM_PARAMS_LOAD ){ texCoord->t = _pico_little_short( texCoord[i].t ); } // set Skin Name - strncpy( skinname, (unsigned char *) fm.fm_skin, FM_SKINPATHSIZE ); + strncpy( skinname, fm.fm_skin->path, FM_SKINPATHSIZE ); #ifdef FM_VERBOSE_DBG // Print out md2 values