[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Re: snprintf
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] Re: snprintf |
Date: |
Fri, 01 Oct 2004 12:02:34 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> int
> snprintf (char *str, size_t size, const char *format, ...)
> {
> ...
> len = size;
> output = vasnprintf (str, &len, format, args);
This assumes that STR is malloc-allocated, no? I thought vasnprintf
will reallocate STR if SIZE is too small. But STR might point to
static storage.