[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixing some warnings in emacs-26
From: |
Andreas Schwab |
Subject: |
Re: Fixing some warnings in emacs-26 |
Date: |
Sat, 08 Jun 2019 10:22:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
On Jun 08 2019, Juanma Barranquero <address@hidden> 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, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Re: Fixing some warnings in emacs-26,
Andreas Schwab <=