[PATCH xrandr v4 2/5] xrandr: stricter --scale argument parsing

Keith Packard keithp at keithp.com
Tue Feb 6 19:03:53 UTC 2018


Giuseppe Bilotta <giuseppe.bilotta at gmail.com> writes:

> Joking aside, this does mean that strtod could be a good option when
> parsing the single value. The check would be more verbose though, so I
> think I'll stick with sscanf.

Sure, your sscanf pattern is pretty simple to understand.

> I'll add the positive check for both scale and gamma and respin the patch.

Thanks.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20180206/658d97a6/attachment.sig>


More information about the xorg-devel mailing list