mirror of https://github.com/wb2osz/direwolf.git
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:
parent
d11bd6f3f2
commit
e207cfd2aa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue