makes sure that the string only contains the characters between 32 and 127 */
| 1592 | |
| 1593 | /* makes sure that the string only contains the characters between 32 and 127 */ |
| 1594 | void str_sanitize_strong(char *str_in) |
| 1595 | { |
| 1596 | unsigned char *str = (unsigned char *)str_in; |
| 1597 | while(*str) |
| 1598 | { |
| 1599 | *str &= 0x7f; |
| 1600 | if(*str < 32) |
| 1601 | *str = 32; |
| 1602 | str++; |
| 1603 | } |
| 1604 | } |
| 1605 | |
| 1606 | /* makes sure that the string only contains the characters between 32 and 255 */ |
| 1607 | void str_sanitize_cc(char *str_in) |
nothing calls this directly
no outgoing calls
no test coverage detected