fix compile error

This commit is contained in:
Chris Danford
2003-12-19 01:37:23 +00:00
parent e67a108759
commit 5c3bbf15cd
@@ -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 );