Alexandre Julliard : mciseq: Don' t use sizeof in traces to avoid printf format warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 14 06:50:48 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 5784ca9bcafddb39135c69e16f2c900c09003ae6
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5784ca9bcafddb39135c69e16f2c900c09003ae6

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 13 14:10:47 2006 +0200

mciseq: Don't use sizeof in traces to avoid printf format warnings.

---

 dlls/mciseq/mcimidi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mciseq/mcimidi.c b/dlls/mciseq/mcimidi.c
index fcf30e8..e7c215c 100644
--- a/dlls/mciseq/mcimidi.c
+++ b/dlls/mciseq/mcimidi.c
@@ -400,7 +400,7 @@ static DWORD MIDI_mciReadMTrk(WINE_MCIMI
 	    len = mmt->wEventLength - HIWORD(mmt->dwEventData);
 
 	    if (len >= sizeof(buf)) {
-		WARN("Buffer for text is too small (%d bytes, when %u are needed)\n", sizeof(buf) - 1, len);
+		WARN("Buffer for text is too small (%u are needed)\n", len);
 		len = sizeof(buf) - 1;
 	    }
 	    if (mmioRead(wmm->hFile, (HPSTR)buf, len) == len) {
@@ -1049,7 +1049,7 @@ static DWORD MIDI_mciPlay(UINT wDevID, D
 		    WORD	idx = HIBYTE(LOWORD(mmt->dwEventData));
 
 		    if (len >= sizeof(buf)) {
-			WARN("Buffer for text is too small (%d bytes, when %u are needed)\n", sizeof(buf) - 1, len);
+			WARN("Buffer for text is too small (%u are needed)\n", len);
 			len = sizeof(buf) - 1;
 		    }
 		    if (mmioRead(wmm->hFile, (HPSTR)buf, len) == len) {




More information about the wine-cvs mailing list