summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-04-05 21:02:47 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-04-05 21:02:47 +0000
commitad69bc76a2d01dab4e59b35690415fe3ac4b74b7 (patch)
tree106da3dc16c87e7359ad57d269613e17da4bfd60
parent754ddc37cfc4328b16f4cc36ccd84c57efb35d74 (diff)
better error message
-rw-r--r--usr.bin/ssh/buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/buffer.c b/usr.bin/ssh/buffer.c
index 0a8a4aa3599..68696fd3f74 100644
--- a/usr.bin/ssh/buffer.c
+++ b/usr.bin/ssh/buffer.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: buffer.c,v 1.10 2001/01/21 19:05:45 markus Exp $");
+RCSID("$OpenBSD: buffer.c,v 1.11 2001/04/05 21:02:46 markus Exp $");
#include "xmalloc.h"
#include "buffer.h"
@@ -112,7 +112,8 @@ void
buffer_get(Buffer *buffer, char *buf, u_int len)
{
if (len > buffer->end - buffer->offset)
- fatal("buffer_get: trying to get more bytes than in buffer");
+ fatal("buffer_get: trying to get more bytes %d than in buffer %d",
+ len, buffer->end - buffer->offset);
memcpy(buf, buffer->buf + buffer->offset, len);
buffer->offset += len;
}