From 0cd1bb198b2c81a3be430c641772b15b5512e4db Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Thu, 21 May 2020 10:27:51 -0500 Subject: [PATCH] Revert rig_debug to use 16384 buffer to avoid compilation warnings --- include/hamlib/rig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index b68447b45..462bae519 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -2643,7 +2643,7 @@ rig_need_debug HAMLIB_PARAMS((enum rig_debug_level_e debug_level)); #ifndef __cplusplus #ifdef __GNUC__ // doing the debug macro with a dummy sprintf allows gcc to check the format string -#define rig_debug(debug_level,fmt,...) { char xxxbuf[756]="";snprintf(xxxbuf,sizeof(xxxbuf),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); } +#define rig_debug(debug_level,fmt,...) { char xxxbuf[16384]="";snprintf(xxxbuf,sizeof(xxxbuf),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); } #endif #endif extern HAMLIB_EXPORT(void)