Fixes to minor Coverity errors:

75424
73422
72724
72702
72662
This commit is contained in:
Markus Makela
2014-11-07 11:12:26 +02:00
parent e1af60ac71
commit 474f018cee
4 changed files with 13 additions and 5 deletions

View File

@ -57,6 +57,9 @@ int main(int argc, char** argv)
{
fgets(readbuff,4092,infile);
psize = strlen(readbuff);
if(psize < 0 || > 4092){
continue;
}
qbuff = gwbuf_alloc(psize + 7);
*(qbuff->sbuf->data + 0) = (unsigned char)psize;
*(qbuff->sbuf->data + 1) = (unsigned char)(psize>>8);