git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40908
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void csstrncpyt(wxChar *target, const wxChar *source, int n)
{
void csstrncpyt(wxChar *target, const wxChar *source, int n)
{
- while ( (*target++ = *source++) != '\0' && --n )
+ while ( (*target++ = *source++) != '\0' && --n != 0 )
- long lineWidth,
- lineHeight;
+ long lineWidth = 0,
+ lineHeight = 0;
dc.GetTextExtent(line, &lineWidth, &lineHeight);
switch ( horizAlign )
dc.GetTextExtent(line, &lineWidth, &lineHeight);
switch ( horizAlign )