aboutsummaryrefslogtreecommitdiff
path: root/uri.c (follow)
Commit message (Collapse)AuthorAgeLines
* uri: hostname_is_localhost(): don’t crash if hostname == NULLDaniel Eklöf2021-06-19-3/+4
|
* uri: switch to conservative maximum hostname lengthJan Beich2021-01-21-1/+1
| | | | | | | | Current maximum is provided by sysconf(_SC_HOST_NAME_MAX) instead. uri.c:269:20: error: use of undeclared identifier 'HOST_NAME_MAX' char this_host[HOST_NAME_MAX]; ^
* Print stack trace on assert() failure or when calling fatal_error()Craig Barnes2021-01-16-1/+1
| | | | | | Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
* uri: rename nibbletohex() function to hex2nibble()Craig Barnes2021-01-04-3/+3
| | | | It converts a hex digit to a nibble, not the other way around.
* uri: use nibble2hex() instead of isxdigit(3) to check valid hex digitsCraig Barnes2021-01-04-4/+6
|
* codespell: fix misspelled wordsDaniel Eklöf2020-10-28-1/+1
|
* uri: add uri_parse() - new function extracts components from an URIDaniel Eklöf2020-10-28-0/+274