From ee11262d06cc6af9d900b44cb4d9af29050b375f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 4 Nov 2014 19:25:34 +1030 Subject: Use obstack_blank_fast to shrink obstacks obstack_blank isn't the correct macro to call for shrinking obstacks since it does size checking. * charset.c (convert_between_encodings): Shrink obstack using obstack_blank_fast. * minsyms.c (install_minimal_symbols): Likewise. --- gdb/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/charset.c') diff --git a/gdb/charset.c b/gdb/charset.c index bc7bd65..94ad020 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -506,7 +506,7 @@ convert_between_encodings (const char *from, const char *to, /* Now make sure that the object on the obstack only includes bytes we have converted. */ - obstack_blank (output, - (int) outleft); + obstack_blank_fast (output, -outleft); if (r == (size_t) -1) { -- cgit v1.1