Skip to content

Commit

Permalink
#116 buffer size needs to be a signed integer
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Jul 12, 2019
1 parent 0493759 commit 36fc7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36fc7cf

Please sign in to comment.