Clearer error message if h->len is too big. The current value of errno has

no meaning here, so don't use perror().


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@192 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Jilles Tjoelker 2004-01-30 20:08:31 +00:00
parent 846f59e3f6
commit 7222c4a282
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ ttyread (FILE * fp, Header * h, char **buf, int pread)
/* length should never be longer than one BUFSIZ */
if (h->len > BUFSIZ)
{
perror ("hlen");
fprintf (stderr, "h->len too big (%d) limit %d\n", h->len, BUFSIZ);
exit (-21);
}