From: Juanma Barranquero <lekktu@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: Fixing some warnings in emacs-26
Date: Sun, 9 Jun 2019 13:02:18 +0200 [thread overview]
Message-ID: <CAAeL0STceMdqMadeWQAD2pQUnBMmUH5GZOfTQhSkYQoSHDhH+Q@mail.gmail.com> (raw)
In-Reply-To: <83wohwo3xw.fsf@gnu.org>
On Sat, Jun 8, 2019 at 10:51 AM Eli Zaretskii <eliz@gnu.org> wrote:
> In that
> branch, emacs_path comes from the GetModuleFileName call, and we limit
> the result from that call to MAX_PATH characters.
Correct, and that's why the compiler warning was so explicit:
addpm.c:223:36:
sprintf (msg, "Install Emacs at %s?\n", emacs_path);
^~
addpm.c:223:4: note: 'sprintf' output between 20 and 279 bytes into a
destination of size 260
sprintf (msg, "Install Emacs at %s?\n", emacs_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prev parent reply other threads:[~2019-06-09 11:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-08 5:11 Fixing some warnings in emacs-26 Juanma Barranquero
2019-06-08 6:41 ` Eli Zaretskii
2019-06-08 7:07 ` Juanma Barranquero
2019-06-08 8:43 ` Eli Zaretskii
2019-06-08 22:55 ` Juanma Barranquero
2019-06-09 6:12 ` Eli Zaretskii
2019-06-08 8:22 ` Andreas Schwab
2019-06-08 8:51 ` Eli Zaretskii
2019-06-09 11:02 ` Juanma Barranquero [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=CAAeL0STceMdqMadeWQAD2pQUnBMmUH5GZOfTQhSkYQoSHDhH+Q@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=schwab@linux-m68k.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.