On Wednesday 15 October 2014 16:14:17 Imran Zaman wrote: > Hi > > The patch is used to replace strtol and strtoul with wl_strtol and > wl_strtoul with inputs and result checks. > > The utility functions are used extensively in wayland and weston so added > appropriate > input and output checks; test cases are also updated; will push the patch > for weston as well.
You should use strtol_l and strtoul_l from <xlocale.h> and pass the C locale. Otherwise, those functions are subject to the locale's definition of a space character. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel