From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: jan.kratochvil@redhat.com
Cc: gdb-patches@sourceware.org, ppluzhnikov@google.com
Subject: Re: [patch 1/3] Code cleanup: strcpy + strlen -> sprintf
Date: Wed, 19 Oct 2011 00:24:00 -0000 [thread overview]
Message-ID: <201110182209.p9IM9o3F026010@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <20111018205108.GA31533@host1.jankratochvil.net> (message from Jan Kratochvil on Tue, 18 Oct 2011 22:51:08 +0200)
>
> Hi,
>
> I do not understand much the reasons, maybe a fear about violating C
> sequence points. I hope it is not due to incompatible sprintf on
> MS-Windows CE or some such gdbserver platform.
Please use snprintf(3) instead of sprintf(3).
next prev parent reply other threads:[~2011-10-18 22:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 20:52 Jan Kratochvil
2011-10-19 0:24 ` Mark Kettenis [this message]
2011-10-19 8:40 ` Jan Kratochvil
2011-10-19 14:08 ` Tom Tromey
2011-10-19 14:40 ` Jan Kratochvil
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=201110182209.p9IM9o3F026010@glazunov.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=ppluzhnikov@google.com \
/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