diff src/audacious/tuple_compiler.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 ce3f2d2455cf
line wrap: on
line diff
--- a/src/audacious/tuple_compiler.c	Fri Dec 21 18:39:46 2007 +0100
+++ b/src/audacious/tuple_compiler.c	Mon Dec 24 13:01:15 2007 +0100
@@ -805,7 +805,7 @@
         *resmax = *reslen + MIN_ALLOC_BUF;
         *res = g_malloc(*resmax);
         
-        strncpy(*res, str, *resmax);
+        g_strlcpy(*res, str, *resmax);
       }
     }