Fix standard cylinder names

We need to pass the size as an integer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-05 14:52:13 -07:00
parent 83f0aefa5c
commit 6545855b65

2
dive.c
View file

@ -552,7 +552,7 @@ static void match_standard_cylinder(cylinder_type_t *type)
default:
return;
}
len = snprintf(buffer, sizeof(buffer), fmt, rint(cuft));
len = snprintf(buffer, sizeof(buffer), fmt, (int)rint(cuft));
p = malloc(len + 1);
if (!p)
return;