summaryrefslogtreecommitdiff
path: root/audio/mpg123/patches/patch-at
blob: 235fbb0e18d8ccaffdba1af90a6709fbf1ff9b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$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);
             }