From c4912a54eb8b9138390cf027e0fb2076f6207ed1 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 10 Sep 1998 06:44:54 +0000 Subject: thread-safer --- lib/libc/stdio/perror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index 217601e858c..2eceac1511b 100644 --- a/lib/libc/stdio/perror.c +++ b/lib/libc/stdio/perror.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: perror.c,v 1.2 1996/08/19 08:32:56 tholo Exp $"; +static char rcsid[] = "$OpenBSD: perror.c,v 1.3 1998/09/10 06:44:53 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -56,7 +56,7 @@ perror(s) { register struct iovec *v; struct iovec iov[4]; - static char buf[NL_TEXTMAX]; + char buf[NL_TEXTMAX]; v = iov; if (s && *s) { -- cgit v1.2.3