Skip to content

Commit

Permalink
Backported fix for CORE-1010.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyemanov committed Dec 12, 2006
1 parent cc98d07 commit 4d45414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jrd/dyn.epp
Expand Up @@ -234,9 +234,9 @@ void DYN_error(bool status_flag,
/* check every other argument for end of vector */

ISC_STATUS arg;
ISC_STATUS* const end = local_status + sizeof(local_status) - 1;
while (v1 < end &&
((arg = *v2++) != isc_arg_cstring || v1 + 1 < end) &&
ISC_STATUS* const end = local_status + FB_NELEM(local_status) - 1;
while (v1 < end - 1 &&
((arg = *v2++) != isc_arg_cstring || v1 + 1 < end - 1) &&
(*v1++ = arg))
{
*v1++ = *v2++;
Expand Down

0 comments on commit 4d45414

Please sign in to comment.