]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxchar.cpp
source id type is unsigned; minor cleanup
[wxWidgets.git] / src / common / wxchar.cpp
index 52fc61910b081158361790d7509d6452b0ad69bb..cf4e0a5be555a94bb9ccf9090612ccf400f95d6f 100644 (file)
@@ -1199,7 +1199,11 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax,
         return lenMax+1;     // not enough space in the output buffer !
     }
 
-    wxASSERT(lenCur == wxStrlen(buf));
+    // Don't do:
+    //      wxASSERT(lenCur == wxStrlen(buf));
+    // in fact if we embedded NULLs in the output buffer (using %c with a '\0')
+    // such check would fail
+
     return lenCur;
 }