Skip to content
Snippets Groups Projects
Commit dbff3ece authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

minor fix

Rev: src/modules/readlinemod/readlinemod.c:1.5
parent ea82b931
Branches
Tags
No related merge requests found
...@@ -106,7 +106,7 @@ static void f_readline(INT32 args) ...@@ -106,7 +106,7 @@ static void f_readline(INT32 args)
THREADS_ALLOW(); THREADS_ALLOW();
write(1, prompt, plen); write(1, prompt, plen);
r=fgets(line,BLOCK,stdin); /* Should probably get rid of this one */ r=fgets(line,BLOCK-1,stdin); /* Should probably get rid of this one */
line[BLOCK-1] = '\0'; /* Always NUL-terminated */ line[BLOCK-1] = '\0'; /* Always NUL-terminated */
THREADS_DISALLOW(); THREADS_DISALLOW();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment