Skip to content

Commit

Permalink
fixed ODBC-51. Data appears sometimes wrong in Access/Excel
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpotapchenko committed Nov 28, 2008
1 parent 65c91bf commit b540315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OdbcConvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3865,7 +3865,7 @@ int OdbcConvert::convVarStringToStringW(DescRecord * from, DescRecord * to)
}

pointerFrom += sizeof( short );
if( len > 0 )
if( (len > 0) && (dataRemaining > 0) )
{
int lenWC = (int)from->MbsToWcs( pointerTemp,
pointerFrom + from->dataOffset,
Expand Down

0 comments on commit b540315

Please sign in to comment.