From: Matthias Braun Date: Tue, 4 May 2010 13:15:10 +0000 (+0000) Subject: bugfix X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=6aaf054f627b488daf78d8d9c47cca4370012a55;p=libfirm bugfix [r27481] --- diff --git a/ir/obstack/obstack_printf.c b/ir/obstack/obstack_printf.c index a8b5a98b0..9d92092eb 100644 --- a/ir/obstack/obstack_printf.c +++ b/ir/obstack/obstack_printf.c @@ -16,7 +16,7 @@ int obstack_vprintf(struct obstack *obst, const char *fmt, va_list ap) int len; for (;;) { - len = vsnprintf(buffer, sizeof(buffer), fmt, ap); + len = vsnprintf(buffer, size, fmt, ap); /* snprintf should return -1 only in the error case, but older glibcs * and probably other systems are buggy in this respect and return -1 if