fix always true assertion

This commit is contained in:
Rich Evans 2015-02-02 11:57:21 +00:00
parent 539d972a25
commit 1fef5ff5ec

View file

@ -43,7 +43,7 @@ static int unhexify(unsigned char *obuf, const char *ibuf)
{ {
unsigned char c, c2; unsigned char c, c2;
int len = strlen(ibuf) / 2; int len = strlen(ibuf) / 2;
assert(!(strlen(ibuf) %1)); // must be even number of bytes assert( strlen(ibuf) % 2 == 0 ); // must be even number of bytes
while (*ibuf != 0) while (*ibuf != 0)
{ {