mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-04-08 15:53:47 +00:00
Replace spaces in string parsing with non-printable 0x7F for correct passthrough in radio
This commit is contained in:
parent
637e3376a0
commit
5cd5b63b7e
5 changed files with 27 additions and 2 deletions
|
|
@ -265,6 +265,7 @@ uint32 cmd_slice(int requester_fd, int argc, char **argv)
|
|||
if(strncmp(argv[2], "string", strlen("string")) == 0)
|
||||
{
|
||||
char* new_string = argv[2]+strlen("string")+1;
|
||||
charReplace(new_string, (char) 0x7F, ' ');
|
||||
freedv_set_string(slc, new_string);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue