summaryrefslogtreecommitdiffhomepage
path: root/ir/obstack
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-05-04 15:15:10 +0200
committerMatthias Braun <matze@braunis.de>2010-05-04 15:15:10 +0200
commit6aaf054f627b488daf78d8d9c47cca4370012a55 (patch)
tree80869308170df9aa2c976d02d6a6be0ac2d9214e /ir/obstack
parentbb6d574bb9c74fca9f205b94aef021e57832aaad (diff)
bugfix
[r27481]
Diffstat (limited to 'ir/obstack')
-rw-r--r--ir/obstack/obstack_printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/obstack/obstack_printf.c b/ir/obstack/obstack_printf.c
index a8b5a98..9d92092 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