Allocate sufficient space for string buffer
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 00281a84596c0d06a503bc27d57796c7eea8cd17..62705c2630612bb5abe878df7fe99101c7c6fb90 100644 (file)
@@ -1,3 +1,18 @@
+2012-06-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * input-scrub.c (input_scrub_include_sb): Use sb_build to
+       allocate sufficient space for from_sb.  Use sb_terminate to
+       terminate string.
+       * read.c (read_a_source_file): Use sb_build to allocate
+       sufficient space and replace sb_add_string with sb_add_buffer.
+       (s_macro): Likewise.
+       (input_scrub_insert_line): Likewise.
+       (s_irp): Use sb_build to allocate sufficient space.
+       (do_repeat): Use sb_build to allocate sufficient space
+       for many.
+       * sb.c (sb_build): Remove static.
+       * sb.h (sb_build): New prototype.
+
 2012-06-09  Alan Modra  <amodra@gmail.com>
 
        * sb.c: Include limits.h.
This page took 0.025558 seconds and 4 git commands to generate.