Skip to content

Commit

Permalink
generous buffer for binCraft generation
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Aug 11, 2023
1 parent ba15ba0 commit fc50225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ struct char_buffer generateAircraftBin(threadpool_buffer_t *pbuffer) {

struct craftArray *ca = &Modes.aircraftActive;
ca_lock_read(ca);
size_t alloc = 4096 + (ca->len + 2) * sizeof(struct binCraft);
size_t alloc = 4096 + (ca->len + 64) * sizeof(struct binCraft);

char *buf = check_grow_threadpool_buffer_t(pbuffer, alloc);
char *p = buf;
Expand Down

0 comments on commit fc50225

Please sign in to comment.