Skip to content

Commit 83f07ad

Browse files
committed
Fix setting 2 bytes
1 parent 5f540ba commit 83f07ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

interbase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,8 +1332,8 @@ void _php_ibase_populate_trans(zend_long trans_argl, zend_long trans_timeout, ch
13321332
} else {
13331333
last_tpb[tpb_len++] = isc_tpb_lock_timeout;
13341334
last_tpb[tpb_len++] = sizeof(ISC_SHORT);
1335-
last_tpb[tpb_len] = (ISC_SHORT)trans_timeout;
1336-
tpb_len += sizeof(ISC_SHORT);
1335+
last_tpb[tpb_len++] = (char)trans_timeout;
1336+
last_tpb[tpb_len++] = (char)(trans_timeout >> 8);
13371337
}
13381338
}
13391339
}

0 commit comments

Comments
 (0)