mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9fcb28a6f5
commit
b0df54071e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue