Permalink
Browse files

Fix off-by-one error.

  • Loading branch information...
1 parent fab0a48 commit 6160c279b4c7ba70a40d95cb67c8b4ee6032c4db @drizzt committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 hclink.c
View
@@ -388,7 +388,7 @@ int
hcc_check_space(hctransaction_t trans, struct HCHead *head, int n, int size)
{
size = HCC_ALIGN(size) + n * sizeof(struct HCLeaf);
- if (size > HC_BUFSIZE - trans->windex) {
+ if (size >= HC_BUFSIZE - trans->windex) {
struct HCHead *whead = (void *)trans->wbuf;
whead->cmd |= HCF_CONTINUE;

0 comments on commit 6160c27

Please sign in to comment.