diff src/audacious/tuple_compiler.c @ 4102:10e7c823462d

Get rid of strcpy() completely.
author Jonathan Schleifer <js-audacious@webkeks.org>
date Fri, 21 Dec 2007 18:39:46 +0100
parents c4295265f61d
children 7b9d5718a6dc
line wrap: on
line diff
--- a/src/audacious/tuple_compiler.c	Wed Dec 19 00:57:45 2007 -0600
+++ b/src/audacious/tuple_compiler.c	Fri Dec 21 18:39:46 2007 +0100
@@ -805,7 +805,7 @@
         *resmax = *reslen + MIN_ALLOC_BUF;
         *res = g_malloc(*resmax);
         
-        strcpy(*res, str);
+        strncpy(*res, str, *resmax);
       }
     }