diff options
Diffstat (limited to 'vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc')
-rw-r--r-- | vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc b/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc index 14fe2f75b92..c6e9cd21d75 100644 --- a/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc +++ b/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc @@ -38,7 +38,7 @@ vtv_open_log(const char * name) { int fd = open(name, O_WRONLY | O_APPEND | O_CREAT, S_IRWXU); if (fd == -1) - vtv_add_to_log(2, "Cannot open log file %s %s\n", name, sys_errlist[errno]); + vtv_add_to_log(2, "Cannot open log file %s %s\n", name, strerror(errno)); return fd; } @@ -49,7 +49,7 @@ vtv_log_write(int fd, const char * str) return 0; if (fd != 2) // make sure we dont get in a loop - vtv_add_to_log(2, "Error writing to log: %s\n", sys_errlist[errno]); + vtv_add_to_log(2, "Error writing to log: %s\n", strerror(errno)); return -1; } |