From 2220b99e2bdc756de31bc9a247f026a5fcf63204 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 29 Apr 2009 09:12:58 +0200 Subject: Imported Upstream version 2.2.2-dfsg --- src/VBox/Main/linux/HostHardwareLinux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/VBox/Main/linux/HostHardwareLinux.cpp') 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 { -- cgit v1.2.3