View | Details | Raw Unified | Return to bug 13446
Collapse All | Expand All

(-)stdio-common/vfprintf.c.orig (-1 / +3 lines)
Lines 1683-1690 do_positional: Link Here
1683
	  {
1683
	  {
1684
	    /* Extend the array of format specifiers.  */
1684
	    /* Extend the array of format specifiers.  */
1685
	    struct printf_spec *old = specs;
1685
	    struct printf_spec *old = specs;
1686
	    specs = extend_alloca (specs, nspecs_max,
1686
            size_t nsize = nspecs_max;
1687
	    specs = extend_alloca (specs, nsize,
1687
				   2 * nspecs_max * sizeof (*specs));
1688
				   2 * nspecs_max * sizeof (*specs));
1689
            nspecs_max = 2 * nspecs_max;
1688
1690
1689
	    /* Copy the old array's elements to the new space.  */
1691
	    /* Copy the old array's elements to the new space.  */
1690
	    memmove (specs, old, nspecs * sizeof (struct printf_spec));
1692
	    memmove (specs, old, nspecs * sizeof (struct printf_spec));

Return to bug 13446