aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/stdio/readline.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-21 12:25:14 +0100
committerMarvin Borner2019-12-21 12:25:14 +0100
commit38610cd06dc0b5a3a4ee46f5fe7c341191aa2bc1 (patch)
tree759378766ee6b22d72a0f2fded1b0dd530376a6e /src/userspace/mlibc/stdio/readline.c
parent07530dd08e0b29573712b54543a7fc42672bb34b (diff)
Some userspace improvements
GAS is bad, NASM is awesome.
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