[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixing some warnings in emacs-26
From: |
Eli Zaretskii |
Subject: |
Re: Fixing some warnings in emacs-26 |
Date: |
Sat, 08 Jun 2019 11:51:23 +0300 |
> From: Andreas Schwab <address@hidden>
> Date: Sat, 08 Jun 2019 10:22:19 +0200
> Cc: Emacs developers <address@hidden>
>
> > - 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.
Not in the branch where the above code is used, I think. In that
branch, emacs_path comes from the GetModuleFileName call, and we limit
the result from that call to MAX_PATH characters.
Re: Fixing some warnings in emacs-26, Andreas Schwab, 2019/06/08
- Re: Fixing some warnings in emacs-26,
Eli Zaretskii <=