Skip to content

Commit

Permalink
Fixed CORE-1485: AV when loading messages in msg.fdb
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPeshkoff committed Sep 28, 2007
1 parent 489a1da commit eb3f6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isql/isql.epp
Expand Up @@ -2314,7 +2314,7 @@ static processing_state add_row(TEXT* tabname)
avary->vary_length = length;
strncpy(avary->vary_string, lastInputLine, length);
ivar->sqldata = (SCHAR*) avary;
ivar->sqllen = length + sizeof(USHORT);
ivar->sqllen = length;
break;
}

Expand Down Expand Up @@ -3109,7 +3109,7 @@ static processing_state bulk_insert_hack(const char* command, XSQLDA** sqldap)
avary->vary_length = length;
strncpy(avary->vary_string, lastPos, length);
ivar->sqldata = (SCHAR*) avary;
ivar->sqllen = length + sizeof(USHORT);
ivar->sqllen = length;
break;
}

Expand Down

0 comments on commit eb3f6f5

Please sign in to comment.