Subject: Re: CVS commit: basesrc
To: None <sommerfeld@orchard.arlington.ma.us>
From: Lennart Augustsson <lennart@augustsson.net>
List: source-changes
Date: 10/12/2000 09:05:52
Bill Sommerfeld wrote:

> it was my intent to run this change by you before committing it, but
> it was part of a large diff collection which ignatios has been chewing
> through and revieweing.
>
> The "right" answer here appears to be to define a "format checking"
> function in libc, which verifies that two formats are "compatible"
> with respect to what arguments they expect.  the function would be
> declared to be a format pass-through function (like gettext or catgets).

That sound like a good idea, because the current "solution" is just wrong.
Replacing `printf(fmt, x)' with `printf("%s %d", fmt, x)' doesn't work
since the fmt string in this case contains different formats (e.g. %04u).

    -- Lennart



--

        -- Lennart