From b0df54071e7731b7f7a4b1df481200865f5a1e1a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 4 Mar 2013 00:12:10 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- equipment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equipment.c b/equipment.c index f0a9df478..19add3f4c 100644 --- a/equipment.c +++ b/equipment.c @@ -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); -- cgit v1.2.3-70-g09d2