Skip to content
Commit a2cbdefc authored by Bryce Harrington's avatar Bryce Harrington Committed by Daniel Stone
Browse files

wayland-client: Require base 10 for WAYLAND_SOCKET, explicitly



The third arg to strtol() specifies the base to assume for the number.
When 0 is passed, as is currently done in wayland-client.c, hexadecimal
and octal numbers are permitted and automatically detected and
converted.

I can find no indication that we would ever expect use of hexadecimal or
octal for socket fd's.  So be explicit about what base we're assuming
here and avoid any potential surprises.

Signed-off-by: default avatarBryce Harrington <bryce@osg.samsung.com>
Reviewed-by: default avatarYong Bakos <ybakos@humanoriented.com>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
parent b05baa6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment