X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fobstack%2Fobstack_printf.c;h=9d92092ebf4db39bdb5bad897f2e7f06a7d0ec81;hb=0d61f4e9a295d71deca66e1580273e484e7f0f9f;hp=a8b5a98b0120be580931395e12309fe72498c4a9;hpb=bb6d574bb9c74fca9f205b94aef021e57832aaad;p=libfirm 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