Skip to content

Commit

Permalink
common.c, va(): make VA_BUFFERLEN the maximum of 1024 or MAX_OSPATH
Browse files Browse the repository at this point in the history
because va() can be used for generating path names
  • Loading branch information
sezero committed Nov 25, 2024
1 parent 958fb63 commit a59af45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Quake/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,11 @@ FIXME: make this buffer size safe someday
============
*/
#define VA_NUM_BUFFS 4
#if (MAX_OSPATH >= 1024)
#define VA_BUFFERLEN MAX_OSPATH
#else
#define VA_BUFFERLEN 1024
#endif

static char *get_va_buffer(void)
{
Expand Down

0 comments on commit a59af45

Please sign in to comment.