This patch seems reasonable, but wouldn't we also need to change vasnprintf.c so that it doesn't use %n in writeable memory? Please see the thread at <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00253.html>.
- [PATCH] printf: remove stupid restriction on %n Andreas Schwab
- Re: [PATCH] printf: remove stupid restriction on %n Paul Eggert
- Re: [PATCH] printf: remove stupid restriction on %... Bruno Haible
- Re: [PATCH] printf: remove stupid restriction ... Paul Eggert
- Re: [PATCH] printf: remove stupid restrict... Bruce Korb
- Re: [PATCH] printf: remove stupid res... Paul Eggert