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
This commit is contained in:
Geoffrey Merck 2022-07-01 22:09:04 +02:00 committed by GitHub
parent d11bd6f3f2
commit e207cfd2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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);