diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:41:09 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:41:09 +0300 |
commit | 8c042f99cc7465c86351d21331a129111b75345d (patch) | |
tree | 9656e653be0e42e5469cec77635c20356de152c2 /missing/strerror.c | |
parent | 8ceb5f934787eb7be5fb452fb39179df66119954 (diff) | |
download | egawk-8c042f99cc7465c86351d21331a129111b75345d.tar.gz egawk-8c042f99cc7465c86351d21331a129111b75345d.tar.bz2 egawk-8c042f99cc7465c86351d21331a129111b75345d.zip |
Move to gawk-3.0.0.
Diffstat (limited to 'missing/strerror.c')
-rw-r--r-- | missing/strerror.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/missing/strerror.c b/missing/strerror.c index badaf5dd..e49fdb65 100644 --- a/missing/strerror.c +++ b/missing/strerror.c @@ -6,7 +6,7 @@ * Copyright (C) 1986, 1988, 1989, 1991 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the - * AWK Progamming Language. + * AWK Programming Language. * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,10 +19,14 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with GAWK; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +#if 0 +#include <stdio.h> +#endif + extern int sys_nerr; extern char *sys_errlist[]; @@ -32,8 +36,8 @@ int n; { static char mesg[30]; - if (n < 0 || n > sys_nerr) { - sprintf (mesg, "Unknown error (%d)", n); + if (n < 0 || n >= sys_nerr) { + sprintf(mesg, "Unknown error (%d)", n); return mesg; } else return sys_errlist[n]; |