bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13394: Misalignment for "seq -w"


From: Bernhard Voelker
Subject: bug#13394: Misalignment for "seq -w"
Date: Wed, 09 Jan 2013 13:42:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 01/09/2013 01:05 PM, Pádraig Brady wrote:
> Looks like a bug. I'll fix with:
> 
> diff --git a/src/seq.c b/src/seq.c
> index e1b467c..3eb53f8 100644
> --- a/src/seq.c
> +++ b/src/seq.c
> @@ -332,6 +332,8 @@ get_default_format (operand first, operand step, operand 
> last)
>               last_width--;  /* don't include space for '.' */
>             if (last.precision == 0 && prec)
>               last_width++;  /* include space for '.' */
> +          if (first.precision == 0 && prec)
> +            first_width++;  /* include space for '.' */
>             size_t width = MAX (first_width, last_width);
>             if (width <= INT_MAX)
>               {

+1

Have a nice day,
Berny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]