From: Thomas Koenig <tkoenig@netcologne.de>
To: Qing Zhao <qing.zhao@oracle.com>, gcc-patches <gcc-patches@gcc.gnu.org>
Cc: fortran@gcc.gnu.org, blomqvist.janne@gmail.com
Subject: Re: Patch to fix an undefined behavior in fortran/decl.c
Date: Fri, 01 Dec 2017 17:36:00 -0000 [thread overview]
Message-ID: <18888b7e-63f5-ab5a-cf06-79e12faedd45@netcologne.de> (raw)
In-Reply-To: <47AB1118-E914-4ABB-BCE9-89A4C4867768@oracle.com>
HI Quing,
> this is a very straightforward fix for an undefined behavior in
> fortran/decl.c:
> - sprintf (name, "%s_%d", name, kind_value);
> + sprintf (name + strlen (name), "_%d", kind_value);
OK for trunk. Thanks for the patch!
Regards
Thomas
prev parent reply other threads:[~2017-12-01 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 15:04 Qing Zhao
2017-12-01 17:36 ` Thomas Koenig [this message]
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=18888b7e-63f5-ab5a-cf06-79e12faedd45@netcologne.de \
--to=tkoenig@netcologne.de \
--cc=blomqvist.janne@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=qing.zhao@oracle.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).