summaryrefslogtreecommitdiff
path: root/src/VBox/Main/linux/HostHardwareLinux.cpp
diff options
context:
space:
mode:
authorMichael Meskes <meskes@debian.org>2009-04-29 09:12:58 +0200
committerMichael Meskes <meskes@debian.org>2009-04-29 09:12:58 +0200
commit2220b99e2bdc756de31bc9a247f026a5fcf63204 (patch)
tree621b9c668d9cf430637e8fac03da7b2ab2dcd753 /src/VBox/Main/linux/HostHardwareLinux.cpp
parent690566d90f268e7a7b2f63e13b3caf266fca9f6c (diff)
downloadvirtualbox-2220b99e2bdc756de31bc9a247f026a5fcf63204.tar.gz
Imported Upstream version 2.2.2-dfsgupstream/2.2.2-dfsg
Diffstat (limited to 'src/VBox/Main/linux/HostHardwareLinux.cpp')
-rw-r--r--src/VBox/Main/linux/HostHardwareLinux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VBox/Main/linux/HostHardwareLinux.cpp b/src/VBox/Main/linux/HostHardwareLinux.cpp
index 821232e1e..20c777b3f 100644
--- a/src/VBox/Main/linux/HostHardwareLinux.cpp
+++ b/src/VBox/Main/linux/HostHardwareLinux.cpp
@@ -1,4 +1,4 @@
-/* $Id: HostHardwareLinux.cpp 17929 2009-03-16 13:09:36Z vboxsync $ */
+/* $Id: HostHardwareLinux.cpp $ */
/** @file
* Classes for handling hardware detection under Linux. Please feel free to
* expand these to work for other systems (Solaris!) or to add new ones for
@@ -197,7 +197,7 @@ int VBoxMainDriveInfo::updateFloppies ()
char devName[10];
for (int i = 0; i <= 7; i++)
{
- sprintf(devName, "/dev/fd%d", i);
+ RTStrPrintf(devName, sizeof(devName), "/dev/fd%d", i);
if (validateDevice(devName, false))
try
{