summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-07-08 22:40:41 +0000
committerMiles Bader <miles@gnu.org>1997-07-08 22:40:41 +0000
commit5d18e7fb89af5ce2e89ee18ef5d69ef1e00ce5d1 (patch)
tree6fdf33b84e11ec3e35d4de708513325854860ad8 /boot
parentd77dcb1e2fd84bc9c358580bd76df083eca402b8 (diff)
(prompt_resume_task):
Pass more than a single character buffer to safe_gets.
Diffstat (limited to 'boot')
-rw-r--r--boot/boot_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/boot_script.c b/boot/boot_script.c
index 75b01633..b773c011 100644
--- a/boot/boot_script.c
+++ b/boot/boot_script.c
@@ -101,10 +101,10 @@ resume_task (struct cmd *cmd, int *val)
static int
prompt_resume_task (struct cmd *cmd, int *val)
{
- char c;
+ char xx[5];
printf ("Hit return to resume %s...", cmd->path);
- safe_gets (&c, 1);
+ safe_gets (xx, sizeof xx);
if (task_resume (cmd->task))
{