On Tue, Sep 10, 2013 at 06:40:33PM +0800, εΎε ζ wrote: > I did not post a bug report, because I did not check the real reason of this > bug. The new line character reason is only from my suspection.
Imagine the current position is 0. We're going to write the character itself, an (optional) space and then there should be one byte left for the terminating null. So we need 3 bytes, exactly as the comment says. So realloc should get 3 (0 + 3), not 2. Please add your comments to the related Gerrit change I've posted. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel