summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/cdrom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdk-stage1/cdrom.c b/mdk-stage1/cdrom.c
index ef762a3c3..e951d35c3 100644
--- a/mdk-stage1/cdrom.c
+++ b/mdk-stage1/cdrom.c
@@ -38,8 +38,7 @@ static int mount_that_cd_device(char * dev_name)
{
char device_fullname[50];
- strcpy(device_fullname, "/dev/");
- strcat(device_fullname, dev_name);
+ snprintf(device_fullname, sizeof(device_fullname), "/dev/%s", dev_name);
#ifdef MANDRAKE_MOVE
return my_mount(device_fullname, IMAGE_LOCATION, "supermount", 0);