From: Peter Korsgaard Date: Sun, 16 Dec 2018 16:20:15 +0100 Subject: [Buildroot] [PATCH 1/1] liboping: fix format-truncation error In-Reply-To: <20181206223909.23161-1-fontaine.fabrice@gmail.com> (Fabrice Fontaine's message of "Thu, 6 Dec 2018 23:39:09 +0100") References: <20181206223909.23161-1-fontaine.fabrice@gmail.com> Message-ID: <87va3t8pn4.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Fabrice" == Fabrice Fontaine writes: > liboping.c: In function 'ping_host_add': > liboping.c:207:9: error: '%s' directive output may be truncated writing > up to 255 bytes into a region of size 243 [-Werror=format-truncation=] > "%s: %s", function, message); > ^~ > liboping.c:1644:40: > ping_set_error (obj, "getaddrinfo", errmsg); > ~~~~~~ > liboping.c:206:2: note: 'snprintf' output between 14 and 269 bytes into > a destination of size 256 > snprintf (obj->errmsg, sizeof (obj->errmsg), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "%s: %s", function, message); > Fixes: > - http://autobuild.buildroot.org/results/b12d86388b495a96194e0bcbb5c19a4e35cbc53d > Signed-off-by: Fabrice Fontaine Committed to 2018.08.x and 2018.11.x, thanks. -- Bye, Peter Korsgaard