X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2Fnvidia.c;h=c88e7cff163e6a805f44cb66bdd86e1ea1ca9506;hp=65cc9a7038ae67dd7ce55268cb2900c520985d65;hb=573a01a68ca7cfc7c0afc6c128737dd05dd11625;hpb=01948e6facb18dd1dd2052cc9a6ba209ed7d7466 diff --git a/src/lib/nvidia.c b/src/lib/nvidia.c index 65cc9a7..c88e7cf 100644 --- a/src/lib/nvidia.c +++ b/src/lib/nvidia.c @@ -256,7 +256,8 @@ static char *i2str(int i) size_t n; /* second +1 to avoid issue about the conversion of a double - * to a lower int */ + * to a lower int + */ n = 1 + (ceil(log10(INT_MAX)) + 1) + 1; str = malloc(n);