8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

use MIN instead min

This commit is contained in:
alexpeshkoff 2009-02-02 15:14:48 +00:00
parent db1f3adc73
commit b922c0b0fb

View File

@ -2966,7 +2966,7 @@ bool get_exception(BurpGlobals* tdgbl)
break;
}
*msg_ptr++ = char(attribute); // (1)
UCHAR* rc_ptr = get_block(tdgbl, msg_ptr, min(remaining - 1, 255));
UCHAR* rc_ptr = get_block(tdgbl, msg_ptr, MIN(remaining - 1, 255));
if (remaining > 1 && rc_ptr == msg_ptr) // we couldn't read anything
{
bad_attribute (scan_next_attr, failed_attrib, 287);