aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/error.cpp
diff options
context:
space:
mode:
authordimko <dimko@yandex-team.ru>2022-02-10 16:50:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:07 +0300
commit811ece47d06924d20a94f89d1b0f5cd37254a49c (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/error.cpp
parent5df1bbceafd25528f800dbe399738150b20384f3 (diff)
downloadydb-811ece47d06924d20a94f89d1b0f5cd37254a49c.tar.gz
Restoring authorship annotation for <dimko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/error.cpp')
-rw-r--r--util/system/error.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/error.cpp b/util/system/error.cpp
index a9f782127f..f778ec42cb 100644
--- a/util/system/error.cpp
+++ b/util/system/error.cpp
@@ -84,9 +84,9 @@ void LastSystemErrorText(char* str, size_t size, int code) {
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, code, 0, str, DWORD(size), 0);
Strip(str);
#elif defined(_sun_)
- strfcpy(str, strerror(code), size);
+ strfcpy(str, strerror(code), size);
#elif defined(_freebsd_) || defined(_darwin_) || defined(_musl_) || defined(_bionic_)
- strerror_r(code, str, size);
+ strerror_r(code, str, size);
#elif defined(_linux_) | defined(_cygwin_)
char* msg = strerror_r(code, str, size);
strncpy(str, msg, size);