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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userspace/mlibc/stdio/readline.c b/src/userspace/mlibc/stdio/readline.c
index b948884..91b5da0 100644
--- a/src/userspace/mlibc/stdio/readline.c
+++ b/src/userspace/mlibc/stdio/readline.c
@@ -9,8 +9,8 @@ char *readline()
while (buf != '\n') {
buf = getch();
writec(buf);
- strcpy(ret, buf);
+ strcpy(ret, &buf);
}
- strcpy(ret, buf);
+ strcpy(ret, &buf);
return ret;
} \ No newline at end of file