From 1994c8d96ce6a88c35d86d600ff504aa06bb6cf1 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 15 Oct 2012 15:47:46 +0100 Subject: [PATCH] comedi_board_info: increased length of strtmp[] `strtmp` is currently declared as `char strtmp[16]`, but that may be too short for the calls to `unit_to_desc()` when the type of unit is unknown. Increase its length to 32. --- comedi_board_info/comedi_board_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi_board_info/comedi_board_info.c b/comedi_board_info/comedi_board_info.c index 35a66dd..506669e 100644 --- a/comedi_board_info/comedi_board_info.c +++ b/comedi_board_info/comedi_board_info.c @@ -209,7 +209,7 @@ int main(int argc,char *argv[]) comedi_t *it; char *filename = default_filename; char c; - char strtmp[16]; + char strtmp[32]; int n_chans_for_generic_timed = 1; int freq_for_generic_timed = 1E9; -- 2.26.2