mirror of
https://github.com/curl/curl.git
synced 2026-07-26 08:57:16 +03:00
IPFS: bugfixes
- Fixed endianness bug in gateway file parsing
- Use IPFS_PATH in tests where IPFS_DATA was used
- Fixed typos from traling -> trailing
- Fixed broken link in IPFS.md
Follow-up to 859e88f653
Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/pull/12152#issuecomment-1798214137
Closes #12305
This commit is contained in:
parent
9588528a0b
commit
d06643812c
5 changed files with 9 additions and 11 deletions
|
|
@ -104,7 +104,8 @@ static char *ipfs_gateway(void)
|
|||
|
||||
/* get the first line of the gateway file, ignore the rest */
|
||||
while((c = getc(gateway_file)) != EOF && c != '\n' && c != '\r') {
|
||||
if(curlx_dyn_addn(&dyn, &c, 1))
|
||||
char c_char = (char)c;
|
||||
if(curlx_dyn_addn(&dyn, &c_char, 1))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue