Commit 2b875d77 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

flac_mac safe string patch from Janne Hyvärinen <>.

parent 01e1bb9a
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment