aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'stdio/perror.c')
-rw-r--r--stdio/perror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio/perror.c b/stdio/perror.c
index 718a6f2256..1054acaa7d 100644
--- a/stdio/perror.c
+++ b/stdio/perror.c
@@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */
#include <stdio.h>
#include <errno.h>
-extern char *_strerror_internal __P ((int, char buf[1024]));
+extern char *_strerror_internal __P ((int, char *buf, size_t));
/* Print a line on stderr consisting of the text in S, a colon, a space,
a message describing the meaning of the contents of `errno' and a newline.
@@ -38,5 +38,5 @@ DEFUN(perror, (s), register CONST char *s)
colon = ": ";
(void) fprintf (stderr, "%s%s%s\n",
- s, colon, _strerror_internal (errnum, buf));
+ s, colon, _strerror_internal (errnum, buf, sizeof buf));
}