From: Jeff Layton Date: Sat, 1 Aug 2009 11:21:26 +0000 (-0400) Subject: nfs-utils: declare a static common buffer for nfssvc.c routines X-Git-Tag: nfs-utils-1-2-1-rc3~5 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=sidebyside;h=775dea70ccc7556ac613def7896b3d3c1ff85ab5;hp=775dea70ccc7556ac613def7896b3d3c1ff85ab5;p=nfs-utils.git nfs-utils: declare a static common buffer for nfssvc.c routines Several of the routines in nfssvc.c declare a buffer for strings. Use a shared static buffer instead to keep it off of the stack. Also, the buffer allocated in some places is *really* large. BUFSIZ is generally 8k. These routines don't need nearly that much. Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson ---