# HG changeset patch # User nicodvb # Date 1172998164 0 # Node ID 3fb1371e169775fa0a80fab0f3cddff63cad4aba # Parent cf4c052b6d6046a6459afc30d780cf96a5426a0a print the disc_id without using a buffer diff -r cf4c052b6d60 -r 3fb1371e1697 stream/stream_dvd.c --- 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"); } } /**