From 8a6d4820cc8f99d541a66430cf5df019aebc521b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 25 Jul 2017 10:47:13 -0700 Subject: [PATCH] Debug buffer address returned from stack should be static. --- src/picoTCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/picoTCP.cpp b/src/picoTCP.cpp index eeb3e99..957fc4b 100644 --- a/src/picoTCP.cpp +++ b/src/picoTCP.cpp @@ -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) {