need to use memchr instead of strchr
This commit is contained in:
parent
50184a8796
commit
d353a08dd1
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue