need to use memchr instead of strchr

This commit is contained in:
David Rose 2003-12-18 04:58:26 +00:00
parent 50184a8796
commit d353a08dd1

View File

@ -122,12 +122,12 @@ GetModelNoteInfo( SAA_Scene *scene, SAA_Elem *model ) {
&bigEndian, (void *)modelNote );
//strip off newline, if present
char *eol = strchr( modelNote, '\n' );
char *eol = (char *)memchr( modelNote, '\n', size );
if ( eol != NULL)
*eol = '\0';
else
modelNote[size] = '\0';
softegg_cat.spam() << "\nmodelNote = " << modelNote << endl;
}