mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-31 01:24:43 +02:00
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:
parent
846f59e3f6
commit
7222c4a282
@ -135,7 +135,7 @@ ttyread (FILE * fp, Header * h, char **buf, int pread)
|
|||||||
/* length should never be longer than one BUFSIZ */
|
/* length should never be longer than one BUFSIZ */
|
||||||
if (h->len > BUFSIZ)
|
if (h->len > BUFSIZ)
|
||||||
{
|
{
|
||||||
perror ("hlen");
|
fprintf (stderr, "h->len too big (%d) limit %d\n", h->len, BUFSIZ);
|
||||||
exit (-21);
|
exit (-21);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user