]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dbtable.cpp
added wxHtmlHelpController::AddBook(wxFileName)
[wxWidgets.git] / src / common / dbtable.cpp
index 03d947568a02750862c11b3ae5e54e3927571228..879a4dd38d6b2f0f2cd03d8c9ceaa3abbb538301 100644 (file)
@@ -2586,8 +2586,8 @@ wxVariant wxDbTable::GetCol(const int colNo) const
 
 void csstrncpyt(char *s, const char *t, int n)
 {
 
 void csstrncpyt(char *s, const char *t, int n)
 {
-    while ((*s++ = *t++) && --n)
-    {};
+    while ( (*s++ = *t++) != '\0' && --n )
+        ;
 
     *s = '\0';
 }
 
     *s = '\0';
 }