From 83feeb39275a1d00932e3361ec8d598d1276d0ae Mon Sep 17 00:00:00 2001 From: hniksic Date: Fri, 8 Jul 2005 00:25:21 -0700 Subject: [PATCH] [svn] Doc fix. --- src/log.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/log.c b/src/log.c index f0083cc5..ee9f0693 100644 --- a/src/log.c +++ b/src/log.c @@ -369,12 +369,12 @@ log_vprintf_internal (struct logvprintf_state *state, const char *fmt, numwritten = vsnprintf (write_ptr, available_size, fmt, args); /* vsnprintf() will not step over the limit given by available_size. - If it fails, it will return either -1 (POSIX?) or the number of - characters that *would have* been written, if there had been - enough room (C99). In the former case, we double the - available_size and malloc to get a larger buffer, and try again. - In the latter case, we use the returned information to build a - buffer of the correct size. */ + If it fails, it returns either -1 (older implementations) or the + number of characters (not counting the terminating \0) that + *would have* been written if there had been enough room (C99). + In the former case, we double available_size and malloc to get a + larger buffer, and try again. In the latter case, we use the + returned information to build a buffer of the correct size. */ if (numwritten == -1) { -- 2.39.2