From: Andreas Schwab <schwab@linux-m68k.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Fixing some warnings in emacs-26
Date: Sat, 08 Jun 2019 10:22:19 +0200 [thread overview]
Message-ID: <m2ftokv64k.fsf@linux-m68k.org> (raw)
In-Reply-To: <CAAeL0SQ39+YZohvmY+QmWNEVGciheJ+xq6+YpmE6Y4PDMEzJVg@mail.gmail.com> (Juanma Barranquero's message of "Sat, 8 Jun 2019 07:11:01 +0200")
On Jun 08 2019, Juanma Barranquero <lekktu@gmail.com> wrote:
> diff --git a/nt/addpm.c b/nt/addpm.c
> index f71ce5f238..5ef8079101 100644
> --- a/nt/addpm.c
> +++ b/nt/addpm.c
> @@ -219,7 +219,7 @@ main (int argc, char *argv[])
> {
> int result;
>
> - char msg[ MAX_PATH ];
> + char msg[ MAX_PATH + 20 ]; /* Needs extra space for fixed text. */
> sprintf (msg, "Install Emacs at %s?\n", emacs_path);
emacs_path can be longer than MAX_PATH.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2019-06-08 8:22 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 [this message]
2019-06-08 8:51 ` Eli Zaretskii
2019-06-09 11:02 ` Juanma Barranquero
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ftokv64k.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).