(strerror): Fix swapped args in sprintf.
authorRoland McGrath <roland@redhat.com>
Wed, 22 Feb 1995 03:10:16 +0000 (03:10 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 22 Feb 1995 03:10:16 +0000 (03:10 +0000)
misc.c

diff --git a/misc.c b/misc.c
index b9e76b9b068a676015deb2d794929434bdea0be5..886cdf3b2c4bb6d2ed79fa4fc4df720d946386e3 100644 (file)
--- 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