
8 Jan
2012
8 Jan
'12
8:17 p.m.
On Sunday 08 January 2012 09:25:21 David Wagner wrote:
--- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c
+long int xstrtol(char *s)
const
+{
- long int tmp;
- tmp = strtol(s, NULL, 0);
- if (!errno)
return tmp;
you should manually clear errno before calling strtol. it'll set the value, but won't clear it. -mike