Alexandre Julliard : wineps: Avoid sizeof in a trace.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 14 11:12:50 CDT 2015


Module: wine
Branch: master
Commit: 36a88cdb1132d95af0f641746485fe0c4430cca4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=36a88cdb1132d95af0f641746485fe0c4430cca4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Oct 14 20:37:40 2015 +0900

wineps: Avoid sizeof in a trace.

---

 dlls/wineps.drv/download.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wineps.drv/download.c b/dlls/wineps.drv/download.c
index 30eb0db..dc77cf1 100644
--- a/dlls/wineps.drv/download.c
+++ b/dlls/wineps.drv/download.c
@@ -656,7 +656,7 @@ static void get_post2_custom_glyph_name(BYTE *post2header, DWORD size, WORD inde
         if(name_offset + sizeof(BYTE) > size)
         {
             FIXME("Pascal name offset '%d' exceeds PostScript Format 2 table size (%d)\n",
-                  name_offset + sizeof(BYTE), size);
+                  name_offset + 1, size);
             return;
         }
         name_length = (post2header + name_offset)[0];




More information about the wine-cvs mailing list