1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 14:08:07 -05:00

docs: fix typos

This commit is contained in:
Daniel Gustafsson 2021-05-31 12:47:15 +02:00
parent 1c1d9f1aff
commit 772eacb2e3
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ void Curl_bufref_set(struct bufref *br, const void *buffer, size_t length,
void (*destructor)(void *));
```
Releases the previouly referenced buffer, then assigns the new `buffer` to
Releases the previously referenced buffer, then assigns the new `buffer` to
the structure, associated with its `destructor` function. The later can be
specified as `NULL`: this will be the case when the referenced buffer is
static.
@ -55,7 +55,7 @@ if `buffer` is NULL, `length`must be zero.
CURLcode Curl_bufref_memdup(struct bufref *br, const void *data, size_t length);
```
Releases the previouly referenced buffer, then duplicates the `length`-byte
Releases the previously referenced buffer, then duplicates the `length`-byte
`data` into a buffer allocated via `malloc()` and references the later
associated with destructor `curl_free()`.
@ -70,7 +70,7 @@ Returns `CURLE_OK` if successful, else `CURLE_OUT_OF_MEMORY`.
const unsigned char *Curl_bufref_ptr(const struct bufref *br);
```
Returns a `const unsigned char *` to the referenced bufffer.
Returns a `const unsigned char *` to the referenced buffer.
## len

View File

@ -376,7 +376,7 @@ libcurl-using applications that set the 'setuid' bit to run with elevated or
modified rights also implicitly give that extra power to libcurl and this
should only be done after very careful considerations.
Giving setuid powers to the appliction means that libcurl can save files using
Giving setuid powers to the application means that libcurl can save files using
those new rights (if for example the `SSLKEYLOGFILE` environment variable is
set). Also: if the application wants these powers to read or manage secrets
that the user is otherwise not able to view (like credentials for a login