diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-06-17 12:13:41 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-06-17 12:13:41 +0000 |
commit | 4e8eadf6acc2f0d1ba8ea3eddd09d3ae8df84e66 (patch) | |
tree | 6c4dba2b363a08b6ec5e8113172a4eac4f28a03a | |
parent | cea95af17bb3bfaf65224d0ecd2db2308e333764 (diff) | |
download | gnunet-4e8eadf6acc2f0d1ba8ea3eddd09d3ae8df84e66.tar.gz gnunet-4e8eadf6acc2f0d1ba8ea3eddd09d3ae8df84e66.zip |
- add 2s for new state, reduce buffer
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 0624b9ffd..51112c4ca 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -333,7 +333,7 @@ static struct GNUNET_TIME_Relative rekey_period; | |||
333 | static const char * | 333 | static const char * |
334 | cstate2s (enum CadetTunnelCState cs) | 334 | cstate2s (enum CadetTunnelCState cs) |
335 | { | 335 | { |
336 | static char buf[128]; | 336 | static char buf[32]; |
337 | 337 | ||
338 | switch (cs) | 338 | switch (cs) |
339 | { | 339 | { |
@@ -364,7 +364,7 @@ cstate2s (enum CadetTunnelCState cs) | |||
364 | static const char * | 364 | static const char * |
365 | estate2s (enum CadetTunnelEState es) | 365 | estate2s (enum CadetTunnelEState es) |
366 | { | 366 | { |
367 | static char buf[128]; | 367 | static char buf[32]; |
368 | 368 | ||
369 | switch (es) | 369 | switch (es) |
370 | { | 370 | { |
@@ -376,7 +376,8 @@ estate2s (enum CadetTunnelEState es) | |||
376 | return "CADET_TUNNEL3_KEY_PING"; | 376 | return "CADET_TUNNEL3_KEY_PING"; |
377 | case CADET_TUNNEL3_KEY_OK: | 377 | case CADET_TUNNEL3_KEY_OK: |
378 | return "CADET_TUNNEL3_KEY_OK"; | 378 | return "CADET_TUNNEL3_KEY_OK"; |
379 | 379 | case CADET_TUNNEL3_KEY_REKEY: | |
380 | return "CADET_TUNNEL3_KEY_REKEY"; | ||
380 | default: | 381 | default: |
381 | sprintf (buf, "%u (UNKNOWN STATE)", es); | 382 | sprintf (buf, "%u (UNKNOWN STATE)", es); |
382 | return buf; | 383 | return buf; |