From 998f99ce3ab69200b7d222313b767a50950ee492 Mon Sep 17 00:00:00 2001 From: Byron Ellis Date: Tue, 3 Jul 2007 15:35:47 -0700 Subject: [PATCH] zero buffer --- RInterpreter.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RInterpreter.m b/RInterpreter.m index 251824a..62468fb 100644 --- a/RInterpreter.m +++ b/RInterpreter.m @@ -356,6 +356,8 @@ extern void Rstd_WriteConsole(char*,int); readerBufferLength = aLength; readerAddToHistory = useHistory; + memset(readerBuffer,0,sizeof(unsigned char)*aLength); + //Flush any drawing that may have happened since the last time we were here. NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; if(nil != delegate) [delegate didFinishEvaluationForInterpreter:self]; -- 2.11.4.GIT