Fix numeric match assert

This commit is contained in:
Kurt Zeilenga 2001-07-26 00:53:36 +00:00
parent 82f3982b8f
commit 1a895e67dc
2 changed files with 4 additions and 3 deletions

View File

@ -243,4 +243,5 @@ find_extop( extop_list_t *list, char *oid )
return(ext);
}
return(NULL);
}
}

View File

@ -3216,8 +3216,8 @@ numericStringNormalize(
}
}
assert( newval->bv_val <= p );
assert( q <= p );
/* we should have copied no more then is in val */
assert( (q - newval->bv_val) <= (p - val->bv_val) );
/* null terminate */
*q = '\0';