diff --git a/docs/BUFREF.md b/docs/BUFREF.md index e8ef63080..2231e4e7a 100644 --- a/docs/BUFREF.md +++ b/docs/BUFREF.md @@ -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 diff --git a/docs/libcurl/libcurl-security.3 b/docs/libcurl/libcurl-security.3 index ada378192..3b868e75e 100644 --- a/docs/libcurl/libcurl-security.3 +++ b/docs/libcurl/libcurl-security.3 @@ -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