From 2d1ccb90481e3606c92a481a760b7d3696f72211 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 27 Sep 2002 12:36:53 +0000 Subject: [PATCH] fixed a mistake Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@305 --- src/dos/drive_local.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp index 9bc8c98e..3b904307 100644 --- a/src/dos/drive_local.cpp +++ b/src/dos/drive_local.cpp @@ -106,7 +106,8 @@ bool localDrive::FindFirst(char * search,DTA_FindBlock * dta) { strcpy(directory,name); /* make sure / is last sign */ if (pdir) closedir(pdir); - if(directory[(strlen(directory)-1)]!=CROSS_FILESPLIT) strcat(directory, CROSS_FILESPLIT); + char argh=CROSS_FILESPLIT; + if(directory[(strlen(directory)-1)]!=CROSS_FILESPLIT) strcat(directory, &argh); if((pdir=opendir(directory))==NULL) return false; return FindNext(dta); }