diff --git a/src/display.c b/src/display.c index d2e2a315..f4a9db69 100644 --- a/src/display.c +++ b/src/display.c @@ -27,7 +27,7 @@ void display_serialize(FILE *rsp, uint32_t did) { CGRect frame = display_bounds(did); - size_t buffer_size = MAXLEN; + int buffer_size = MAXLEN; size_t bytes_written = 0; char buffer[MAXLEN] = {}; char *cursor = buffer; diff --git a/src/view.c b/src/view.c index 0378856f..a2afc0cf 100644 --- a/src/view.c +++ b/src/view.c @@ -441,7 +441,7 @@ void view_flush(struct view *view) void view_serialize(FILE *rsp, struct view *view) { - size_t buffer_size = MAXLEN; + int buffer_size = MAXLEN; size_t bytes_written = 0; char buffer[MAXLEN] = {}; char *cursor = buffer;