From e207cfd2aa9ec3e0e6e2460d90a027b4f563bd1c Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Fri, 1 Jul 2022 22:09:04 +0200 Subject: [PATCH] Remove setting of null character in message string A '\0' char is inserted into p->message while looking for message number; The purpose is unclear as none of the code seem to require it. This shall fix #406 --- src/decode_aprs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/decode_aprs.c b/src/decode_aprs.c index 26e87cc..7361f96 100644 --- a/src/decode_aprs.c +++ b/src/decode_aprs.c @@ -1788,7 +1788,6 @@ static void aprs_message (decode_aprs_t *A, unsigned char *info, int ilen, int q // Look for message number. char *pno = strchr(p->message, '{'); if (pno != NULL) { - *pno = '\0'; int mlen = strlen(pno+1); if (mlen < 1 || mlen > 5) { text_color_set(DW_COLOR_ERROR);