# HG changeset patch # User Michael Pavone # Date 1711905694 25200 # Node ID 48ab1e3e5df5d6e174992ca7c18d18bd840fc4d9 # Parent fb8f49b0aece6597f58177ced9916073ff349508 Fix Linux font selection regression diff -r fb8f49b0aece -r 48ab1e3e5df5 nuklear_ui/font.c --- a/nuklear_ui/font.c Sat Mar 30 21:10:20 2024 -0700 +++ b/nuklear_ui/font.c Sun Mar 31 10:21:34 2024 -0700 @@ -23,7 +23,7 @@ if (!fc_pipe) { return NULL; } - size_t buf_size = 4096; + size_t buf_size = 2048; char *buffer = NULL; size_t total = 0, read = 0; do { @@ -33,7 +33,7 @@ if (!buffer) { return NULL; } - read = fread(buffer, 1, buf_size - total, fc_pipe); + read = fread(buffer + total, 1, buf_size - total, fc_pipe); } while (read == (buf_size - total)); total += read; buffer[total] = 0;