summaryrefslogtreecommitdiff
path: root/lib/buffer.c
diff options
context:
space:
mode:
authorGhasem Naddaf <ghasem.naddaf@gmail.com>2020-03-11 09:50:54 -0700
committerGhasem Naddaf <ghasem.naddaf@gmail.com>2020-03-11 09:50:54 -0700
commit31384f929ad817f5a6459feeb6f27ff292b35e2f (patch)
tree9072ac9757649e446f8018f44379c8068e1bfa23 /lib/buffer.c
parent912c556b3a0354f37328f52108777e434307e339 (diff)
parent4a652d922754bfb9e4216347cfc6ea59d068b800 (diff)
Merge branch 'master' into nhrp_bugfix
Diffstat (limited to 'lib/buffer.c')
-rw-r--r--lib/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buffer.c b/lib/buffer.c
index 766b9791a5..ff49bc83df 100644
--- a/lib/buffer.c
+++ b/lib/buffer.c
@@ -288,7 +288,7 @@ buffer_status_t buffer_flush_window(struct buffer *b, int fd, int width,
/* Previously print out is performed. */
if (erase_flag) {
iov[iov_index].iov_base = erase;
- iov[iov_index].iov_len = sizeof erase;
+ iov[iov_index].iov_len = sizeof(erase);
iov_index++;
}
@@ -341,7 +341,7 @@ buffer_status_t buffer_flush_window(struct buffer *b, int fd, int width,
/* In case of `more' display need. */
if (b->tail && (b->tail->sp < b->tail->cp) && !no_more_flag) {
iov[iov_index].iov_base = more;
- iov[iov_index].iov_len = sizeof more;
+ iov[iov_index].iov_len = sizeof(more);
iov_index++;
}