]> skyeroc.xyz Git - dgamelaunch/commitdiff
Clearer error message if h->len is too big. The current value of errno has
authorJilles Tjoelker <jilles@stack.nl>
Fri, 30 Jan 2004 20:08:31 +0000 (20:08 +0000)
committerJilles Tjoelker <jilles@stack.nl>
Fri, 30 Jan 2004 20:08:31 +0000 (20:08 +0000)
no meaning here, so don't use perror().

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@192 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

ttyplay.c

index da61a0e32888cd0e9b664ab48ef541b98f65dedf..c002861d54d0b0305484447f5e7393216fd5c48c 100644 (file)
--- a/ttyplay.c
+++ b/ttyplay.c
@@ -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);
     }