Mercurial > dropbear
diff buffer.c @ 241:c5d3ef11155f
* use own assertions which should get logged properly
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 05 Sep 2005 15:16:10 +0000 |
parents | 161557a9dde8 |
children | 0e38c039a9c8 c3f2ec71e3d4 76097ec1a29a |
line wrap: on
line diff
--- a/buffer.c Fri Sep 02 15:35:18 2005 +0000 +++ b/buffer.c Mon Sep 05 15:16:10 2005 +0000 @@ -153,7 +153,7 @@ unsigned char buf_getbyte(buffer* buf) { /* This check is really just ==, but the >= allows us to check for the - * assert()able case of pos > len, which should _never_ happen. */ + * bad case of pos > len, which should _never_ happen. */ if (buf->pos >= buf->len) { dropbear_exit("bad buf_getbyte"); } @@ -270,7 +270,7 @@ unsigned int len, pad = 0; TRACE(("enter buf_putmpint")) - assert(mp != NULL); + dropbear_assert(mp != NULL); if (SIGN(mp) == MP_NEG) { dropbear_exit("negative bignum");