Fixes silly mistake I made in comparison in functions str2long() and

str2ulong() in 'lib/helper.c'.

Fixes: end_ptr -> *end_ptr
This commit is contained in:
Zdenek Styblik 2012-01-26 14:30:53 +00:00
parent 2902784cf3
commit 09fc12a929

View File

@ -163,7 +163,7 @@ int str2long(const char * str, int64_t * lng_ptr)
errno = 0;
*lng_ptr = strtol(str, &end_ptr, 0);
if (end_ptr != '\0')
if (*end_ptr != '\0')
return (-2);
if (errno != 0)
@ -190,7 +190,7 @@ int str2ulong(const char * str, uint64_t * ulng_ptr)
errno = 0;
*ulng_ptr = strtoul(str, &end_ptr, 0);
if (end_ptr != '\0')
if (*end_ptr != '\0')
return (-2);
if (errno != 0)