From: anonymous c. <nas...@us...> - 2013-05-07 20:08:36
|
> - char numbuf[20]; > + char numbuf[32]; > snprintf(numbuf, sizeof(numbuf), "%"PRId64"", val); This should be 21, not 32. # echo "l(2^63)/l(10)" | bc -l 18.96488972683081529852 So 1+19+1=21, to hold '-', the digits, and the '\0'. |