X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f4de2dcf82443596074427fbfcc5f38d606267a..fcf77487edae715c75f0f802a96e203d88dd56c6:/src/common/dbtable.cpp diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 03d947568a..879a4dd38d 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -2586,8 +2586,8 @@ wxVariant wxDbTable::GetCol(const int colNo) const void csstrncpyt(char *s, const char *t, int n) { - while ((*s++ = *t++) && --n) - {}; + while ( (*s++ = *t++) != '\0' && --n ) + ; *s = '\0'; }