Move the global 'bf' buffer to the only place still using it.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-10-28 13:51:34 -03:00
parent 3593eb45a6
commit 13ec307479
1 changed files with 2 additions and 3 deletions

View File

@ -19,8 +19,6 @@
#include "list.h"
#include "classes.h"
static char bf[4096];
static void *zalloc(const size_t size)
{
void *s = malloc(size);
@ -148,9 +146,10 @@ struct class_member *class_member__new(unsigned int cu,
unsigned long class_member__print(struct class_member *self)
{
struct class *class = find_class_by_type(&self->type);
const char *class_name = bf;
char class_name_bf[128];
char member_name_bf[128];
char bf[512];
const char *class_name = bf;
unsigned long size = -1;
snprintf(member_name_bf, sizeof(member_name_bf),