$NetBSD: patch-aa,v 1.2 2007/08/13 06:31:37 rillig Exp $

--- mpg321.c.orig	2002-03-24 06:49:20.000000000 +0100
+++ mpg321.c	2007-06-15 14:26:24.000000000 +0200
@@ -188,7 +188,7 @@ static int show_id3(struct id3_tag const
             
             else
             {
-                printf(names[i]);
+                printf("%s", names[i]);
                 free(names[i]);
             }
         }
@@ -203,7 +203,7 @@ static int show_id3(struct id3_tag const
             if (!names[i])  {
                 fprintf (stderr, emptystring);
             }   else    {
-                fprintf (stderr, names[i]);
+                fprintf (stderr, "%s", names[i]);
                 free (names[i]);
             }
             if (i%2) fprintf (stderr, "\n");
@@ -435,6 +435,8 @@ int main(int argc, char *argv[])
                 mpg321_error(currentfile);
                 continue;
             }
+
+	    (void)close(fd);
             
             playbuf.frames[0] = playbuf.buf;
             
