Jan Beich
fb660262ab
uri: switch to conservative maximum hostname length
...
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];
^
2021-01-23 10:16:25 +01:00
Craig Barnes
da2b4e1809
uri: rename nibbletohex() function to hex2nibble()
...
It converts a hex digit to a nibble, not the other way around.
2021-01-21 11:52:43 +01:00
Craig Barnes
f22d4e9587
uri: use nibble2hex() instead of isxdigit(3) to check valid hex digits
2021-01-21 11:52:41 +01:00
Daniel Eklöf
bb43695426
codespell: fix misspelled words
2020-10-28 19:34:49 +01:00
Daniel Eklöf
608cc746ad
uri: add uri_parse() - new function extracts components from an URI
2020-10-28 19:10:44 +01:00