Re: [PATCH weston] rdp: Check for non-digits and errno in strtol call

2016-07-12 Thread Bryce Harrington
On Tue, Jul 12, 2016 at 08:12:37AM -0700, Yong Bakos wrote: > On Jul 11, 2016, at 5:02 PM, Bryce Harrington wrote: > > > > Improve error checking for situations like RDP_FD=42foo, or where the > > provided number is out of range. > > > > Suggestion by Yong Bakos. > > > > Signed-off-by: Bryce Ha

Re: [PATCH weston] rdp: Check for non-digits and errno in strtol call

2016-07-12 Thread Eric Engestrom
On Mon, Jul 11, 2016 at 05:02:44PM -0700, Bryce Harrington wrote: > Improve error checking for situations like RDP_FD=42foo, or where the > provided number is out of range. > > Suggestion by Yong Bakos. > > Signed-off-by: Bryce Harrington Reviewed-by: Eric Engestrom > --- > libweston/composi

[PATCH weston] rdp: Check for non-digits and errno in strtol call

2016-07-11 Thread Bryce Harrington
Improve error checking for situations like RDP_FD=42foo, or where the provided number is out of range. Suggestion by Yong Bakos. Signed-off-by: Bryce Harrington --- libweston/compositor-rdp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libweston/compositor-rdp.c b/libw