mirror of https://github.com/OISF/suricata
Introduce BytesToString utility
Introduce a utility function to convert an array of bytes into a null-terminated string: char *BytesToString(const uint8_t *bytes, size_t nbytes); All non-printables are copied over, except for '\0', which is turned into literal '\' '0' in the string. So the resulting string may be bigger than the input.pull/809/merge
parent
2b60871bf1
commit
c07f5397f4
Loading…
Reference in New Issue