aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/stdio/readline.c
diff options
context:
space:
mode:
authorMarvin Borner2020-01-06 00:06:45 +0100
committerMarvin Borner2020-01-06 00:06:45 +0100
commit84a8b41f4d4c444385e0d7ef058a57af07f0c2e1 (patch)
tree71184009c6fc25c3ee1b6d097d5af6705325419a /src/userspace/mlibc/stdio/readline.c
parent9390f6408884d0631e5d9865150851d53e2d6aec (diff)
Usermode based allocating works a bit now
*a bit*
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();