Mercurial > mplayer.hg
diff stream/stream_dvd.c @ 22412:3fb1371e1697
print the disc_id without using a buffer
author | nicodvb |
---|---|
date | Sun, 04 Mar 2007 08:49:24 +0000 |
parents | 521cd55ab99b |
children | cef784b467ac |
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"); } } /**