From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 6 Nov 2012 02:55:04 +0800 References: <1351677149-6045-1-git-send-email-sven@narfation.org> In-Reply-To: <1351677149-6045-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211060255.05103.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batctl: Guarantee delimiter after snprintf Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org On Wednesday, October 31, 2012 17:52:29 Sven Eckelmann wrote: > snprintf doesn't add a \0 delimiter when the size of the buffer is not big > enough. The caller has to fix it manually to avoid crashes. > > Signed-off-by: Sven Eckelmann > --- > bisect_iv.c | 10 ++++++---- > debugfs.c | 1 + > sys.c | 8 ++++++++ > 3 files changed, 15 insertions(+), 4 deletions(-) Applied in revision a5ead71. Thanks, Marek