diff options
| author | thegeorg <[email protected]> | 2022-02-10 16:45:08 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:08 +0300 |
| commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
| tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /contrib/libs/cxxsupp/libcxx/src/system_error.cpp | |
| parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/system_error.cpp')
| -rw-r--r-- | contrib/libs/cxxsupp/libcxx/src/system_error.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/system_error.cpp b/contrib/libs/cxxsupp/libcxx/src/system_error.cpp index a1ea6c4754e..9009dceb2e7 100644 --- a/contrib/libs/cxxsupp/libcxx/src/system_error.cpp +++ b/contrib/libs/cxxsupp/libcxx/src/system_error.cpp @@ -91,7 +91,7 @@ handle_strerror_r_return(int strerror_return, char *buffer) { // The POSIX variant either: // - fills in the provided buffer and returns 0 // - returns a positive error value, or - // - returns -1 and fills in errno with an error value. + // - returns -1 and fills in errno with an error value. if (strerror_return == 0) return buffer; @@ -117,8 +117,8 @@ string do_strerror_r(int ev) { ::strerror_r(ev, buffer, strerror_buff_size), buffer); // If we didn't get any message, print one now. if (!error_message[0]) { - std::snprintf(buffer, strerror_buff_size, "Unknown error %d", ev); - error_message = buffer; + std::snprintf(buffer, strerror_buff_size, "Unknown error %d", ev); + error_message = buffer; } errno = old_errno; return string(error_message); |
