From 5c3bbf15cdd11c7ec967ccfc1a9b51347901b810 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 19 Dec 2003 01:37:23 +0000 Subject: [PATCH] fix compile error --- stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp index a490ec41a4..6e913be5de 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp @@ -215,8 +215,8 @@ bool MemoryCardDriver_Linux::MountAndTestWrite( UsbStorageDevice* pDevice ) // Try to write a file. // TODO: Can we use RageFile for this? - CString sFile = usbd.sOsMountDir; - if( sFile[sFile.length()-1 != '/' ) + CString sFile = pDevice->sOsMountDir; + if( sFile[sFile.length()-1] != '/' ) sFile += '/'; sFile += "temp"; int fd = open( sFile, O_WRONLY|O_CREAT|O_TRUNC );