Mercurial > audlegacy
diff src/audacious/intl/localcharset.c @ 4103:7b9d5718a6dc
strncpy() -> g_strlcpy()
author | Jonathan Schleifer <js-audacious@webkeks.org> |
---|---|
date | Mon, 24 Dec 2007 13:01:15 +0100 |
parents | 10e7c823462d |
children |
line wrap: on
line diff
--- a/src/audacious/intl/localcharset.c Fri Dec 21 18:39:46 2007 +0100 +++ b/src/audacious/intl/localcharset.c Mon Dec 24 13:01:15 2007 +0100 @@ -186,8 +186,8 @@ res_size = 0; break; } - strncpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1, res_size - (l2 + 1)); - strncpy (res_ptr + res_size - (l2 + 1), buf2, res_size - (l1 + 1)); + g_strlcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1, res_size - (l2 + 1)); + g_strlcpy (res_ptr + res_size - (l2 + 1), buf2, res_size - (l1 + 1)); } fclose (fp); if (res_size == 0)