Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752715AbbG2Goe (ORCPT ); Wed, 29 Jul 2015 02:44:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:48290 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbbG2God (ORCPT ); Wed, 29 Jul 2015 02:44:33 -0400 Subject: Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data From: Jean Delvare To: Lee Jones 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 In-Reply-To: <20150728094643.GT14943@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> Content-Type: text/plain; charset="UTF-8" Organization: Suse Linux Date: Tue, 28 Jul 2015 18:50:27 +0200 Message-ID: <1438102227.24962.41.camel@chaos.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 479 Lines: 17 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. -- Jean Delvare SUSE L3 Support -- 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/