aboutsummaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-11-04 19:25:34 +1030
committerAlan Modra <amodra@gmail.com>2014-11-05 16:38:02 +1030
commitee11262d06cc6af9d900b44cb4d9af29050b375f (patch)
tree8758165a389106e2ff2b620b91c3c3028d46365e /gdb/charset.c
parent336649dc254ec4f62562e345dc928d8ec0bdf5ad (diff)
downloadgdb-ee11262d06cc6af9d900b44cb4d9af29050b375f.zip
gdb-ee11262d06cc6af9d900b44cb4d9af29050b375f.tar.gz
gdb-ee11262d06cc6af9d900b44cb4d9af29050b375f.tar.bz2
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.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r--gdb/charset.c2
1 files changed, 1 insertions, 1 deletions
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)
{