better checking haha yes
This commit is contained in:
parent
8fce80df33
commit
384d2180ae
1 changed files with 1 additions and 1 deletions
2
rsudo.c
2
rsudo.c
|
@ -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);
|
||||
LOG_ERROR("main", "hello length != header length");
|
||||
|
|
Loading…
Reference in a new issue