PaulStoffregen / LittleFS

75 stars 20 forks source link

Fix potential buffer overflows #3

Closed Pharap closed 3 years ago

Pharap commented 3 years ago

I don't have anything I can actually test these changes with, but logically using strncpy with the size of the destination buffer as the count argument should prevent buffer overflows.