Skip to content

Commit

Permalink
Fix missing some HTTP files
Browse files Browse the repository at this point in the history
  • Loading branch information
hassandraga committed Jun 1, 2024
1 parent 0878256 commit 4694a29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/webui.c
Original file line number Diff line number Diff line change
Expand Up @@ -3226,6 +3226,10 @@ static size_t _webui_mb(size_t size) {
// 55 -> 64
// ...

// Make sure we have the null
// terminator if it's a string
size++;

// If size is negative
if (size < 4)
size = 4;
Expand All @@ -3247,10 +3251,6 @@ static void * _webui_malloc(size_t size) {
printf("[Core]\t\t_webui_malloc([%zu])\n", size);
#endif

// Make sure we have the null
// terminator if it's a string
size++;

size = _webui_mb(size);

void * block = NULL;
Expand Down

0 comments on commit 4694a29

Please sign in to comment.