[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 96e2cc7829bb7d640be66
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-02-03 15:59:55
|
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 96e2cc7829bb7d640be6620ea0c56d3d0c4fbec2 (commit) from 228cc10aeb3e24c244066f518629bd5b2e0ac0fe (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 96e2cc7829bb7d640be6620ea0c56d3d0c4fbec2 Author: Michael Black W9MDB <mdb...@ya...> Date: Wed Feb 3 09:59:14 2021 -0600 Fix extra LF in debug messages diff --git a/src/rig.c b/src/rig.c index 27cd7640..65b594b4 100644 --- a/src/rig.c +++ b/src/rig.c @@ -303,6 +303,9 @@ const char *HAMLIB_API rigerror(int errnum) } static char msg[25000]; + // we have to remove LF from debugmsgsave since calling function controls LF + char *p = &debugmsgsave[strlen(debugmsgsave)-1]; + if (*p=='\n') *p=0; snprintf(msg, sizeof(msg), "%.80s\n%.15000s", rigerror_table[errnum], debugmsgsave); return msg; } ----------------------------------------------------------------------- Summary of changes: src/rig.c | 3 +++ 1 file changed, 3 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |