From 3b1689275e2d2ea36a0c18017e91c0ff0af94117 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Sat, 15 Jul 2023 20:32:20 +0530 Subject: [PATCH] fix a couple of compiler warning --- vfo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vfo.c b/vfo.c index 7fcba89..44e5581 100644 --- a/vfo.c +++ b/vfo.c @@ -64,9 +64,6 @@ static cairo_surface_t *vfo_surface = NULL; int steps[] = { 1, 10, 100, 1000, 10000, 100000, 1000000 }; char *step_labels[] = { "1Hz", "10Hz", "100Hz", "1kHz", "10kHz", "100kHz", "1MHz" }; -static GtkWidget* menu=NULL; -static GtkWidget* band_menu=NULL; - struct _vfo vfo[MAX_VFOS]; struct _mode_settings mode_settings[MODES]; @@ -952,7 +949,7 @@ char **draw_vfo_val_fixed(char *vfo_str, int step) { // ["VFO A: 7.123", "456"] int l = strlen(vfo_str); - char **s = malloc(2 * sizeof(char *)); + char **s = malloc(3 * sizeof(char *)); char *s1 = malloc(sizeof(char) * 20); char *s2 = malloc(sizeof(char) * 20); -- 2.45.2