From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Fixing some warnings in emacs-26 Date: Sat, 08 Jun 2019 10:22:19 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="210409"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 08 10:22:55 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hZWcp-000sen-IX for ged-emacs-devel@m.gmane.org; Sat, 08 Jun 2019 10:22:55 +0200 Original-Received: from localhost ([::1]:56196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZWco-00029N-At for ged-emacs-devel@m.gmane.org; Sat, 08 Jun 2019 04:22:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33586) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZWcS-000295-Rd for emacs-devel@gnu.org; Sat, 08 Jun 2019 04:22:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZWcR-00008a-SK for emacs-devel@gnu.org; Sat, 08 Jun 2019 04:22:32 -0400 Original-Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:54610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hZWcR-0008Ri-Lo for emacs-devel@gnu.org; Sat, 08 Jun 2019 04:22:31 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45LXSd48RJz1rYWk; Sat, 8 Jun 2019 10:22:25 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45LXSd3wP0z1qql2; Sat, 8 Jun 2019 10:22:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id hc7tw-pCUo1S; Sat, 8 Jun 2019 10:22:24 +0200 (CEST) X-Auth-Info: mmipEJXM9fV4NZwGHTJb3gYzGtU+B4RG8zhonuwVHLJWLytvMiuNE0J6AeXhfw4b Original-Received: from linux.local (ppp-46-244-189-112.dynamic.mnet-online.de [46.244.189.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 8 Jun 2019 10:22:24 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id 022461E532C; Sat, 8 Jun 2019 10:22:19 +0200 (CEST) X-Yow: Here is my refrigerator full of FLANK STEAK...and over there is my UPHOLSTERED CANOE...I don't know WHY I OWN them!! In-Reply-To: (Juanma Barranquero's message of "Sat, 8 Jun 2019 07:11:01 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:a60:0:28:0:1:25:1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237327 Archived-At: On Jun 08 2019, Juanma Barranquero 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."