]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxchar.cpp
Introducing wxBase for borland based on Michael Fieldings patch 598106
[wxWidgets.git] / src / common / wxchar.cpp
index 19284b881346aa3e5241ad748d5660f86dfc1da9..2d2668191a08f98ad953f41232bc5301be7a0dbd 100644 (file)
@@ -163,9 +163,11 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax,
                 buf[lenCur++] = ch
 
 #define APPEND_STR(s) \
-                for ( const wxChar *p = s; *p; p++ ) \
                 { \
-                    APPEND_CH(*p); \
+                    for ( const wxChar *p = s; *p; p++ ) \
+                    { \
+                        APPEND_CH(*p); \
+                    } \
                 }
 
                 switch (format[++n]) {