Skip to content

Commit

Permalink
Cast offset to size_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 15, 2024
1 parent 3bd3960 commit a315f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pappl/client-webif.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ papplClientGetForm(
break;

body_alloc += 65536;
temp_offset = bodyptr - body;
temp_offset = (size_t)(bodyptr - body);

if ((temp = realloc(body, body_alloc)) == NULL)
{
Expand Down

0 comments on commit a315f37

Please sign in to comment.