Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

From: Lee Jones
Date: Wed Jul 29 2015 - 03:27:56 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/