mupen64plus / mupen64plus-core

Core module of the Mupen64Plus project
1.25k stars 255 forks source link

use memchr instead of strchr in is_viewer.c #1033

Closed Rosalie241 closed 10 months ago

Rosalie241 commented 10 months ago

After re-reading the code, I realized that using strcpy is a bad idea and we should use memchr instead to add some safety so strcpy doesn't read out of bounds accidentally.