diff options
author | Ben Laurie <ben@openssl.org> | 2000-11-21 21:37:48 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2000-11-21 21:37:48 +0000 |
commit | cd26e6c79d1251262ad1742efb1510e1b7a900d3 (patch) | |
tree | 5a72908b566360d8664ddb0f2e66b4a8aabc3255 /demos/state_machine/state_machine.c | |
parent | 4e773226f5bf16f175d364b81ac2cfd203c1846f (diff) |
Oops! Read a full buffer instead of some spurious number from elswhere.
Diffstat (limited to 'demos/state_machine/state_machine.c')
-rw-r--r-- | demos/state_machine/state_machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/state_machine/state_machine.c b/demos/state_machine/state_machine.c index 0140fbca70..9cede29350 100644 --- a/demos/state_machine/state_machine.c +++ b/demos/state_machine/state_machine.c @@ -347,7 +347,7 @@ int main(int argc,char **argv) } /* FIXME: we should only extract if stdout is ready */ - n=SSLStateMachine_read_extract(pMachine,buf,n); + n=SSLStateMachine_read_extract(pMachine,buf,sizeof buf); if(n < 0) { SSLStateMachine_print_error(pMachine,"read extract failed"); |