Mercurial > audlegacy
diff src/audacious/intl/log.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/log.c Fri Dec 21 18:39:46 2007 +0100 +++ b/src/audacious/intl/log.c Mon Dec 24 13:01:15 2007 +0100 @@ -81,7 +81,7 @@ last_logfilename = (char *) malloc (strlen (logfilename) + 1); if (last_logfilename == NULL) return; - strncpy (last_logfilename, logfilename, strlen(logfilename) + 1); + g_strlcpy (last_logfilename, logfilename, strlen(logfilename) + 1); last_logfile = fopen (logfilename, "a"); if (last_logfile == NULL) return;