Replace spaces in string parsing with non-printable 0x7F for correct passthrough in radio

This commit is contained in:
Ed Gonzalez 2015-03-12 14:53:51 -05:00
parent 637e3376a0
commit 5cd5b63b7e
5 changed files with 27 additions and 2 deletions

View file

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