mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
need to use memchr instead of strchr
This commit is contained in:
parent
50184a8796
commit
d353a08dd1
@ -122,7 +122,7 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user