Committed to SVN. Thanks for the tip.

Barry

On 3/19/07, Magnus Holmgren <[EMAIL PROTECTED]> wrote:
Barry Wardell wrote:

>> Should it really modify the input string like that? What if it is in
>> flash? (Might not be a problem as currently used, but...)
>>
>>    Magnus
>>
>>
> Good point. Would this be a better way to do it:

<...>

> @@ -160,7 +161,7 @@
>         while (width-- > 0 && ok)
>             ok=push(userp, pad);
>         }
> -        while (*str != '\0' && ok)
> +        while (*str != '\0' && ok && precision--)
>                 ok=push(userp, *str++);
>     }

Yes, that looks like a good solution.

   Magnus

Reply via email to