Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbbG2H1w (ORCPT ); Wed, 29 Jul 2015 03:27:52 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33725 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbbG2H1u (ORCPT ); Wed, 29 Jul 2015 03:27:50 -0400 Date: Wed, 29 Jul 2015 08:27:46 +0100 From: Lee Jones To: Jean Delvare Cc: Matt Fleming , Wim Van Sebroeck , linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Mika Westerberg , Andy Shevchenko , Wolfram Sang , Matt Fleming , Peter Tyser , Samuel Ortiz Subject: Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data Message-ID: <20150729072746.GD2284@x1> References: <1438004292-16382-1-git-send-email-matt@codeblueprint.co.uk> <1438004292-16382-2-git-send-email-matt@codeblueprint.co.uk> <20150728094643.GT14943@x1> <1438102227.24962.41.camel@chaos.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1438102227.24962.41.camel@chaos.site> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 671 Lines: 22 On Tue, 28 Jul 2015, Jean Delvare wrote: > Le Tuesday 28 July 2015 à 10:46 +0100, Lee Jones a écrit : > > On Mon, 27 Jul 2015, Matt Fleming wrote: > > > + strcpy(pdata->name, info->name); > > > > strncpy() is safer. > > And strlcpy() is even better. +1, thanks for that. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/