Skip to content

Commit

Permalink
fix t_getenv_s with --enable-strmax
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Dec 27, 2024
1 parent 332a99e commit a8cbe60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_getenv_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
#endif
#include "test_msvcrt.h"

#if RSIZE_MAX_STR < 4090
#define LEN (RSIZE_MAX_STR)
#else
#define LEN (4090)
#endif

static char dest[LEN];
int test_getenv_s(void);
Expand Down

0 comments on commit a8cbe60

Please sign in to comment.