Re: [U-Boot] [PATCH RESEND v6] usb: gadget: avoid variable name clipping in cb_getvar

2017-04-04 Thread Nicolas LE BAYON
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: lundi 3 avril 2017 15:25 To: Nicolas LE BAYON ; u-boot@lists.denx.de; lu...@denx.de Cc: nleba...@gmail.com; Patrice CHOTARD ; Jean-philippe ROMAIN Subject: Re: [U-Boot][PATCH RESEND v6] usb: gadget: avoid variable name

[U-Boot] [PATCH RESEND v6] usb: gadget: avoid variable name clipping in cb_getvar

2017-04-04 Thread nicolas.le.bayon
From: Nicolas Le Bayon Instead of using a fixed-size array to store variable name, preferring a dynamic allocation treats correctly all variable name lengths. Variable names are growing through releases and features. By this way, name clipping is prevented. Signed-off-by: Nicolas Le Bayon Revie

Re: [U-Boot] [PATCH RESEND v6] usb: gadget: avoid variable name clipping in cb_getvar

2017-04-03 Thread Marek Vasut
On 04/03/2017 03:09 PM, nicolas.le.ba...@st.com wrote: > From: Nicolas Le Bayon > > Instead of using a fixed-size array to store variable name, preferring a > dynamic allocation treats correctly all variable name lengths. > Variable names are growing through releases and features. By this way, na