Escape DEL char (ASCII 127 decimal) in SSIDs
While testing, I noticed that printf_encode() makes control characters human-readable, with one exemption, the DEL character (ASCII 127). Assuming this exemption was unintentional, make it appear as an escaped \x7f instead of a literal DEL character in the output. Signed-off-by: Josh Lehan <krellan@krellan.net>
This commit is contained in:
parent
d7273180c6
commit
1d61a8efee
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ void printf_encode(char *txt, size_t maxlen, const u8 *data, size_t len)
|
|||
*txt++ = 't';
|
||||
break;
|
||||
default:
|
||||
if (data[i] >= 32 && data[i] <= 127) {
|
||||
if (data[i] >= 32 && data[i] <= 126) {
|
||||
*txt++ = data[i];
|
||||
} else {
|
||||
txt += os_snprintf(txt, end - txt, "\\x%02x",
|
||||
|
|
Loading…
Reference in a new issue