From: Andreas Schwab <schwab@suse.de>
To: Adrian Reber <adrian@lisas.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: vsnprintf patch
Date: Wed, 13 Aug 2003 14:16:57 +0200 [thread overview]
Message-ID: <jehe4lsqfa.fsf@sykes.suse.de> (raw)
In-Reply-To: <20030813115212.GA28066@lisas.de> (Adrian Reber's message of "Wed, 13 Aug 2003 13:52:12 +0200")
Adrian Reber <adrian@lisas.de> writes:
|> When using the snprintf function from the kernel the length returned is
|> not the length written:
|>
|> len = snprintf(test,1,"BLA 1");
|>
|> len is 5 although test is "B"
Exactly how it should be.
|> the patch below fixes the symptom, but I am not sure if this is the real
|> solution for this problem.
There is no problem here.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2003-08-13 12:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 11:52 vsnprintf patch Adrian Reber
2003-08-13 12:16 ` Andreas Schwab [this message]
2003-08-13 12:19 ` viro
2003-08-13 12:21 ` Bernd Petrovitsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jehe4lsqfa.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=adrian@lisas.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox