summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-12 15:07:06 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-12 15:07:06 +0000
commita478fed2774cfadcdb6cb27067d50cc578c95d86 (patch)
tree2f1092d8029a1460ad8c7c5e70e73087f02b12e2
parent8155b0d3a4854b4bf6328ebe8deba3c33bd93057 (diff)
downloaddrakx-a478fed2774cfadcdb6cb27067d50cc578c95d86.tar
drakx-a478fed2774cfadcdb6cb27067d50cc578c95d86.tar.gz
drakx-a478fed2774cfadcdb6cb27067d50cc578c95d86.tar.bz2
drakx-a478fed2774cfadcdb6cb27067d50cc578c95d86.tar.xz
drakx-a478fed2774cfadcdb6cb27067d50cc578c95d86.zip
add more memory carefulness with CDROM install
-rw-r--r--mdk-stage1/cdrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/cdrom.c b/mdk-stage1/cdrom.c
index 73ccc273e..a17db46c1 100644
--- a/mdk-stage1/cdrom.c
+++ b/mdk-stage1/cdrom.c
@@ -50,7 +50,7 @@ static enum return_type try_with_device(char *dev_name, char * dev_model)
unset_param(MODE_AUTOMATIC); /* we are in a fallback mode */
remove_wait_message();
- sprintf(msg, "I can't access a CDROM disc (drive %s).\nRetry?", dev_model);
+ snprintf(msg, sizeof(msg), "I can't access a CDROM disc (drive %s).\nRetry?", dev_model);
results = ask_yes_no(msg);
if (results == RETURN_OK)
return try_with_device(dev_name, dev_model);