From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-f181.google.com ([209.85.212.181]:34774 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688AbbG2H1u (ORCPT ); Wed, 29 Jul 2015 03:27:50 -0400 Received: by wibud3 with SMTP id ud3so208493651wib.1 for ; Wed, 29 Jul 2015 00:27:49 -0700 (PDT) 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: QUOTED-PRINTABLE In-Reply-To: <1438102227.24962.41.camel@chaos.site> Sender: linux-watchdog-owner@vger.kernel.org List-Id: linux-watchdog@vger.kernel.org On Tue, 28 Jul 2015, Jean Delvare wrote: > Le Tuesday 28 July 2015 =C3=A0 10:46 +0100, Lee Jones a =C3=A9crit : > > On Mon, 27 Jul 2015, Matt Fleming wrote: > > > + strcpy(pdata->name, info->name); > >=20 > > strncpy() is safer. >=20 > And strlcpy() is even better. +1, thanks for that. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-watchdo= g" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html