diff options
author | thegeorg <[email protected]> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/cxxsupp/libcxx/src/system_error.cpp | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 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 9009dceb2e7..a1ea6c4754e 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); |