emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing some warnings in emacs-26


From: Juanma Barranquero
Subject: Re: Fixing some warnings in emacs-26
Date: Sun, 9 Jun 2019 13:02:18 +0200

On Sat, Jun 8, 2019 at 10:51 AM Eli Zaretskii <address@hidden> 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);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]