aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnulib/import/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gnulib/import/strerror.c')
-rw-r--r--gdb/gnulib/import/strerror.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/gnulib/import/strerror.c b/gdb/gnulib/import/strerror.c
index 45c7633..36397bb 100644
--- a/gdb/gnulib/import/strerror.c
+++ b/gdb/gnulib/import/strerror.c
@@ -1,6 +1,6 @@
/* strerror.c --- POSIX compatible system error routine
- Copyright (C) 2007-2016 Free Software Foundation, Inc.
+ Copyright (C) 2007-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,7 +13,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <config.h>
@@ -66,5 +66,6 @@ strerror (int n)
if (sizeof buf <= len)
abort ();
- return memcpy (buf, msg, len + 1);
+ memcpy (buf, msg, len + 1);
+ return buf;
}