[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 84ce231daf09ecc505c39
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-31 13:31:50
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 84ce231daf09ecc505c393a05444b2e3b4b9e6c4 (commit) from 9394a6cfe465f1783d62c88a48ccefc2dabf798b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 84ce231daf09ecc505c393a05444b2e3b4b9e6c4 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jan 31 07:08:08 2021 -0600 Fix link error for debugmsgsave on MacOS and perhaps others diff --git a/src/rig.c b/src/rig.c index 69d25ee7..868bbcc7 100644 --- a/src/rig.c +++ b/src/rig.c @@ -290,7 +290,7 @@ int foreach_opened_rig(int (*cfunc)(RIG *, rig_ptr_t), rig_ptr_t data) * * \todo support gettext/localization */ -char debugmsgsave[DEBUGMSGSAVE_SIZE]; +char debugmsgsave[DEBUGMSGSAVE_SIZE] = "No message"; const char *HAMLIB_API rigerror(int errnum) { @@ -302,8 +302,8 @@ const char *HAMLIB_API rigerror(int errnum) return "ERR_OUT_OF_RANGE"; } - static char msg[20000]; - snprintf(msg, sizeof(msg), "%s\n%s", rigerror_table[errnum], debugmsgsave); + static char msg[25000]; + snprintf(msg, sizeof(msg), "%80s\n%15000s", rigerror_table[errnum], debugmsgsave); return msg; } ----------------------------------------------------------------------- Summary of changes: src/rig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |