From bfc6244daec981ec9c903e13f521a5b9190ba689 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:01:27 -0500 Subject: remove another fixed-length string --- device-functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device-functions.c b/device-functions.c index 9c641c0..6381f59 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4056,8 +4056,9 @@ int do_full_self_cal(CalStruct *caldata) while ((sec_timer() - globals.Timers.startup_timer_value) < (long)globals.Flash.self_cal_pause) { /*0123456789012345678901234567890123456789*/ - sprintf (string, "Min warm-up is %ds, on for %lds.", globals.Flash.self_cal_pause, sec_timer() - globals.Timers.startup_timer_value); + string = g_strdup_printf ("Min warm-up is %ds, on for %lds.", globals.Flash.self_cal_pause, sec_timer() - globals.Timers.startup_timer_value); LCD_write(3,0,string); + g_free (string); g_usleep (2e5); } -- cgit