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.
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()`.
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
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