changeset 22412:3fb1371e1697

print the disc_id without using a buffer
author nicodvb
date Sun, 04 Mar 2007 08:49:24 +0000
parents cf4c052b6d60
children 219d577285e1
files stream/stream_dvd.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Sat Mar 03 22:15:19 2007 +0000
+++ b/stream/stream_dvd.c	Sun Mar 04 08:49:24 2007 +0000
@@ -867,10 +867,10 @@
       if (DVDDiscID(dvd, discid) >= 0)
       {
         int i;
-        char buf[33];
+        mp_msg(MSGT_IDENTIFY, MSGL_V, "ID_DVD_DISC_ID=");
         for (i = 0; i < 16; i ++)
-          sprintf(buf+2*i, "%02X", discid[i]);
-        mp_msg(MSGT_IDENTIFY, MSGL_V, "ID_DVD_DISC_ID=%s\n", buf);
+          mp_msg(MSGT_IDENTIFY, MSGL_V, "%02X", discid[i]);
+        mp_msg(MSGT_IDENTIFY, MSGL_V, "\n");
       }
     }
     /**