Debug buffer address returned from stack should be static.

This commit is contained in:
Garrett D'Amore
2017-07-25 10:47:13 -07:00
parent 1d21bc4145
commit 8a6d4820cc

View File

@@ -859,7 +859,7 @@ namespace ZeroTier {
*/
char *picoTCP::beautify_pico_state(int state)
{
char state_str[512];
static char state_str[512];
char *str_ptr = state_str;
if(state & PICO_SOCKET_STATE_UNDEFINED) {