minosproject / minos

Flexible Virtualization Solution for Embedded System
http://minosproject.org
GNU General Public License v2.0
246 stars 93 forks source link

use strncmp when reading files from ramdisk #41

Closed ghost closed 3 years ago

ghost commented 3 years ago

strncmp is safer than strcmp. Besides, make sure the file name ends with "\0".

lemin9538 commented 3 years ago

LGTM