hexdump: if size is SIZE_MAX, use strlen()
Similar how we do this as various places: if SIZE_MAX is specified as size determine the size automatically via strlen().
This commit is contained in:
@@ -866,6 +866,9 @@ void hexdump(FILE *f, const void *p, size_t s) {
|
||||
|
||||
assert(b || s == 0);
|
||||
|
||||
if (s == SIZE_MAX)
|
||||
s = strlen(p);
|
||||
|
||||
if (!f)
|
||||
f = stdout;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user