On Tue, Feb 6, 2018 at 3:43 AM, Keith Packard <kei...@keithp.com> wrote: > No, strtod requires a non-empty sequence of digits.
Woah. My whole life is a lie … (I guess it's my fault for never bothering to actually verify this.) > strtod is actually not a terrible function (surprising for libc, I know) You know there's something wrong with a library when an X.org developer questions its general sanity ;-) 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. I'll add the positive check for both scale and gamma and respin the patch. -- Giuseppe "Oblomov" Bilotta _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel