X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libopkg%2Fsprintf_alloc.c;h=03a5f278642a4a88182ac49969efb4ffe65f59a5;hb=6dc8a5d00f1f5244d7c3732dbc21b3763e9066b6;hp=c55a0162916955364f1c55025545a2b554645635;hpb=599cc259280ccde97b2a3b459c3f015db6390127;p=oweals%2Fopkg-lede.git diff --git a/libopkg/sprintf_alloc.c b/libopkg/sprintf_alloc.c index c55a016..03a5f27 100644 --- a/libopkg/sprintf_alloc.c +++ b/libopkg/sprintf_alloc.c @@ -35,12 +35,12 @@ int sprintf_alloc(char **str, const char *fmt, ...) return -1; } - /* On x86_64 systems, any strings over 100 were segfaulting. + /* On x86_64 systems, any strings over 100 were segfaulting. It seems that the ap needs to be reinitalized before every use of the v*printf() functions. I pulled the functionality out - of vsprintf_alloc and combined it all here instead. + of vsprintf_alloc and combined it all here instead. */ - + /* ripped more or less straight out of PRINTF(3) */