From ce50b0f007b8d71078a03d2a83ad8e35b0931dab Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 25 May 2015 17:46:54 +0200 Subject: fixed critical but in ELF loader and finally got tput etc.. (ncurses) working --- userspace/foolshell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'userspace/foolshell.c') diff --git a/userspace/foolshell.c b/userspace/foolshell.c index fa62094..ba73e1d 100644 --- a/userspace/foolshell.c +++ b/userspace/foolshell.c @@ -74,7 +74,7 @@ int main(int argc, char **argv) if(!silent)hello(); //char *buf=malloc(256); - char buf[256]; + char *buf=calloc(sizeof(char),256); while(1) { @@ -101,7 +101,7 @@ char **tokenize(char *buf) for(i=0;i