From 74324c86663f57a19c1de303ee8c8e5449db9ef2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 4 Jun 2007 10:16:52 +0000 Subject: Audit bb_common_bufsiz usage, add script which looks for misuse. tr: stop using globals needlessly. code: -103 bytes --- libbb/messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/messages.c') diff --git a/libbb/messages.c b/libbb/messages.c index 3febe7645..fbd882c43 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -54,7 +54,7 @@ WTMP_FILE; # error unknown path to wtmp file #endif -char bb_common_bufsiz1[(BUFSIZ > 256*sizeof(void*) ? BUFSIZ : 256*sizeof(void*)) + 1]; +char bb_common_bufsiz1[COMMON_BUFSIZE]; struct globals; /* Make it reside in R/W memory: */ -- cgit v1.2.3