BertoldVdb / sdtool

A small tool for managing the write protection flag of SD cards.
https://bertold.org
Other
246 stars 41 forks source link

fix use of strncpy #15

Closed wamserma closed 3 years ago

wamserma commented 3 years ago

strncpy must be used with n < size of destination buffer to avoid loss of the terminating null byte when n source string is has n bytes (excluding terminating null) or more