Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data
From: Jean Delvare
Date: Wed Jul 29 2015 - 02:44:38 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/