mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
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…
x
Reference in New Issue
Block a user