summaryrefslogtreecommitdiff
path: root/tests/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/strerror.c')
-rw-r--r--tests/strerror.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/strerror.c b/tests/strerror.c
index adba738..8fff3bd 100644
--- a/tests/strerror.c
+++ b/tests/strerror.c
@@ -1,6 +1,6 @@
/* strerror.c --- POSIX compatible system error routine
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 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
@@ -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;
}