Skip to content

Commit

Permalink
Debug buffer address returned from stack should be static.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jul 25, 2017
1 parent 93e6e32 commit 49049c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picoTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 49049c2

Please sign in to comment.