From: Zdenek S. <st...@us...> - 2012-01-26 14:30:55
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory vz-cvs-4.sog:/tmp/cvs-serv29842/lib Modified Files: helper.c Log Message: Fixes silly mistake I made in comparison in functions str2long() and str2ulong() in 'lib/helper.c'. Fixes: end_ptr -> *end_ptr Index: helper.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/helper.c,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** helper.c 26 Jan 2012 08:22:11 -0000 1.42 --- helper.c 26 Jan 2012 14:30:53 -0000 1.43 *************** *** 164,168 **** *lng_ptr = strtol(str, &end_ptr, 0); ! if (end_ptr != '\0') return (-2); --- 164,168 ---- *lng_ptr = strtol(str, &end_ptr, 0); ! if (*end_ptr != '\0') return (-2); *************** *** 191,195 **** *ulng_ptr = strtoul(str, &end_ptr, 0); ! if (end_ptr != '\0') return (-2); --- 191,195 ---- *ulng_ptr = strtoul(str, &end_ptr, 0); ! if (*end_ptr != '\0') return (-2); |