$NetBSD: patch-at,v 1.1 2005/01/07 14:52:13 drochner Exp $

--- mpg123.c.orig	2005-01-07 15:18:27.000000000 +0100
+++ mpg123.c
@@ -309,9 +309,9 @@ char *find_next_file (int argc, char *ar
                 if (line[0]=='\0' || line[0]=='#')
                     continue;
 		if ((listnamedir) && (line[0]!='/') && (line[0]!='\\')){
-                    strcpy (linetmp, listnamedir);
-                    strcat (linetmp, line);
-		    strcpy (line, linetmp);
+                    strncpy (linetmp, listnamedir, 1023);
+                    strncat (linetmp, line, 1023 - strlen(linetmp));
+		    strncpy (line, linetmp, 1023);
                 }
                 return (line);
             }
