From: Anders Kaseorg Date: Wed, 8 Dec 2010 06:21:16 +0000 (-0500) Subject: rxi_NatKeepAliveEvent: Shrink excessive stack buffer X-Git-Tag: upstream/1.8.0_pre1^2~4379 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3fd789dfbdc05c7c00798bc305d743deea05e155;p=packages%2Fo%2Fopenafs.git rxi_NatKeepAliveEvent: Shrink excessive stack buffer Fixes rx.c:6138:1: warning: the frame size of 1600 bytes is larger than 1024 bytes Change-Id: I2f5b4961a7d929454a99ea99c637d1a0b2468a14 Signed-off-by: Anders Kaseorg Reviewed-on: http://gerrit.openafs.org/3491 Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/rx.c b/src/rx/rx.c index d045d8b14..cb2da3be0 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -6086,7 +6086,7 @@ rxi_NatKeepAliveEvent(struct rxevent *event, void *arg1, void *dummy) { struct rx_connection *conn = arg1; struct rx_header theader; - char tbuffer[1500]; + char tbuffer[1 + sizeof(struct rx_header)]; struct sockaddr_in taddr; char *tp; char a[1] = { 0 };