From 90fda85425cbe1323b603129db3b805d54d34c3a Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Mon, 10 Dec 2012 01:17:00 +0100 Subject: fix ip_to_str() --- gg_map/gg_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c index 9678938..0b4d529 100644 --- a/gg_map/gg_map.c +++ b/gg_map/gg_map.c @@ -24,7 +24,7 @@ _cb_ecore_libevent(void *data) { const char *ip_to_str(u_int ip) { unsigned char bytes[4]; - char buf[16]; + static char buf[16]; bytes[0] = ip & 0xFF; bytes[1] = (ip >> 8) & 0xFF; -- cgit v1.2.3-59-g8ed1b