Piotr Caban : usp10: Limit trace length in iso_dump_types.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 14 14:52:32 CDT 2014


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Sat Jul 12 11:57:12 2014 +0200

usp10: Limit trace length in iso_dump_types.

---

 dlls/usp10/bidi.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/usp10/bidi.c b/dlls/usp10/bidi.c
index 2926454..5b227d8 100644
--- a/dlls/usp10/bidi.c
+++ b/dlls/usp10/bidi.c
@@ -513,11 +513,16 @@ static inline int iso_previousChar(IsolatedRun *iso_run, int index)
 
 static inline void iso_dump_types(const char* header, IsolatedRun *iso_run)
 {
-    int i;
+    int i, len = 0;
     TRACE("%s:",header);
     TRACE("[ ");
-    for (i = 0; i < iso_run->length; i++)
+    for (i = 0; i < iso_run->length && len < 200; i++)
+    {
         TRACE(" %s",debug_type[*iso_run->item[i].pcls]);
+        len += strlen(debug_type[*iso_run->item[i].pcls])+1;
+    }
+    if (i != iso_run->length)
+        TRACE("...");
     TRACE(" ]\n");
 }
 




More information about the wine-cvs mailing list