This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] stdio-common/vfprintf.c: Remove magic number 32.
- From: Carlos O'Donell <carlos at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 8 May 2017 16:14:51 -0400
- Subject: Re: [PATCH] stdio-common/vfprintf.c: Remove magic number 32.
- Authentication-results: sourceware.org; auth=none
- References: <5c0d8636-3b72-bd94-4fea-61d84d9d254f@redhat.com>
On 05/04/2017 12:26 PM, Carlos O'Donell wrote:
> I was looking at modifying some of this code for a bug I was working
> on and it was super annoying that the 32 character buffer is hardcoded
> everywhere. This patch simply hoists this into a macro EXTSIZ.
>
> I'll check this in within 24h if nobody objects.
>
> 2017-05-04 Carlos O'Donell <carlos@redhat.com>
>
> * stdio-common/vfprintf.c (EXTSIZ): Define.
> (vfprintf): Use EXTSIZ.
> (printf_positional): Likewise.
Checked in as commit 7224e32d7be41b39358defc0e33d2737307aa06a.
--
Cheers,
Carlos.