From cd26e6c79d1251262ad1742efb1510e1b7a900d3 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Tue, 21 Nov 2000 21:37:48 +0000 Subject: [PATCH] Oops! Read a full buffer instead of some spurious number from elswhere. --- demos/state_machine/state_machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- GitLab