X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fstrerror.c;fp=lib%2Fstrerror.c;h=36397bb8c68244dc8032c64f0ad710182ba6b802;hb=a8a88eddaa90432e6ec1b8d9d5c9842bc91afd1d;hp=45c763391c1915a73266d7f9eafbb9788bad5b8f;hpb=20fcfc81ece044b8b0a6768ec6cf47be4e22a2e6;p=debian%2Fgzip diff --git a/lib/strerror.c b/lib/strerror.c index 45c7633..36397bb 100644 --- a/lib/strerror.c +++ b/lib/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 . */ + along with this program. If not, see . */ #include @@ -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; }