aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/stdio/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/mlibc/stdio/readline.c')
-rw-r--r--src/userspace/mlibc/stdio/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userspace/mlibc/stdio/readline.c b/src/userspace/mlibc/stdio/readline.c
index 8937702..68e8499 100644
--- a/src/userspace/mlibc/stdio/readline.c
+++ b/src/userspace/mlibc/stdio/readline.c
@@ -3,7 +3,7 @@
char *readline()
{
- char ret[256] = {'\0'};
+ char *ret = malloc(256);
char buf = 0;
while (buf != '\n') {
buf = getch();