raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
878 stars 221 forks source link

the path[256] will be random bytes, and should be inited with zero. #124

Closed deneschen closed 2 years ago

deneschen commented 2 years ago

otherwise the arg handled by fopen is incorrectly, and will return NULL.

ghollingworth commented 2 years ago

In both uses of path it initially strcpy's into it from dir therefore it doesn't matter how it is initialised