mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
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:
parent
2902784cf3
commit
09fc12a929
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user