From 2b875d77aaa7d5cbbf41b701e999e17cba95f214 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Tue, 2 Apr 2013 20:24:37 +1100 Subject: [PATCH] =?utf8?q?flac=5Fmac=20safe=20string=20patch=20from=20Jann?= =?utf8?q?e=20Hyv=C3=A4rinen=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/monkeys_audio_utilities/flac_mac/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monkeys_audio_utilities/flac_mac/main.c b/src/monkeys_audio_utilities/flac_mac/main.c index 8c8fa3d..8ffa5b6 100644 --- a/src/monkeys_audio_utilities/flac_mac/main.c +++ b/src/monkeys_audio_utilities/flac_mac/main.c @@ -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) -- 2.7.4