diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-05 23:36:01 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-05 23:36:01 +0000 |
commit | d7dd23ffed2b54d5443ef9c0d09324a56894c739 (patch) | |
tree | 815ceff894f6c20a455bbe03e37d962307265326 /buffer.c | |
parent | 11bd89936db5d399a7a5f10af02c7b578735bfd5 (diff) | |
download | openssh-git-d7dd23ffed2b54d5443ef9c0d09324a56894c739.tar.gz |
- markus@cvs.openbsd.org 2001/04/05 21:02:46
[buffer.c]
better error message
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |