equipment.c: Fix potential buffer overflow in size_data_funct()

strcpy() with buffer[10], could overflow on most languages.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2013-03-04 00:12:10 +02:00 committed by Dirk Hohndel
parent 9fcb28a6f5
commit b0df54071e

View file

@ -1336,7 +1336,7 @@ static void size_data_func(GtkTreeViewColumn *col,
{
int ml, mbar;
double size, pressure;
char buffer[10];
char buffer[64];
gtk_tree_model_get(model, iter, CYL_SIZE, &ml, CYL_WORKP, &mbar, -1);
convert_volume_pressure(ml, mbar, &size, &pressure);