mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
flac_mac safe string patch from Janne Hyvärinen <cse@sci.fi>.
This commit is contained in:
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
|
||||
/* for the full 'from' and 'to' paths for the renamer process */
|
||||
p = strrchr(argv[from_arg],'\\');
|
||||
safe_strncat(from, p? p+1 : argv[from_arg], sizeof(from));
|
||||
safe_strncpy(to, from, sizeof(to), sizeof(to));
|
||||
safe_strncpy(to, from, sizeof(to));
|
||||
|
||||
cptr = strrchr(from,'.');
|
||||
if(cptr == NULL)
|
||||
|
||||
Reference in New Issue
Block a user