Debug buffer address returned from stack should be static.
This commit is contained in:
@@ -859,7 +859,7 @@ namespace ZeroTier {
|
|||||||
*/
|
*/
|
||||||
char *picoTCP::beautify_pico_state(int state)
|
char *picoTCP::beautify_pico_state(int state)
|
||||||
{
|
{
|
||||||
char state_str[512];
|
static char state_str[512];
|
||||||
char *str_ptr = state_str;
|
char *str_ptr = state_str;
|
||||||
|
|
||||||
if(state & PICO_SOCKET_STATE_UNDEFINED) {
|
if(state & PICO_SOCKET_STATE_UNDEFINED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user