better checking haha yes

This commit is contained in:
Luna Mendes 2017-12-03 03:08:42 -03:00
parent 8fce80df33
commit 384d2180ae

View file

@ -91,7 +91,7 @@ int main(int argc, char **argv)
} }
if(strlen(buffer) - 1 != header.len) if(strlen(buffer) != header.len || strlen(buffer) - 1 != header.len)
{ {
printf("%u %d\n", strlen(buffer), header.len); printf("%u %d\n", strlen(buffer), header.len);
LOG_ERROR("main", "hello length != header length"); LOG_ERROR("main", "hello length != header length");