From: Roland McGrath Date: Wed, 22 Feb 1995 03:10:16 +0000 (+0000) Subject: (strerror): Fix swapped args in sprintf. X-Git-Tag: 3.72.8~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=514c4bac336fa726ac1955c92b4e071cf21b4fc8;p=platform%2Fupstream%2Fmake.git (strerror): Fix swapped args in sprintf. --- diff --git a/misc.c b/misc.c index b9e76b9..886cdf3 100644 --- a/misc.c +++ b/misc.c @@ -1,5 +1,5 @@ /* Miscellaneous generic support functions for GNU Make. -Copyright (C) 1988, 89, 90, 91, 92, 93, 94 Free Software Foundation, Inc. +Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 1995 Free Software Foundation, Inc. This file is part of GNU Make. GNU Make is free software; you can redistribute it and/or modify @@ -260,7 +260,7 @@ strerror (errnum) if (errno < sys_nerr) return sys_errlist[errnum]; - sprintf ("Unknown error %d", buf, errnum); + sprintf (buf, "Unknown error %d", errnum); return buf; } #endif