blob: a22a324ae7db4959d51407e7e665961855e91471 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- nforenum-r2309/data.cpp~ 2010-03-07 02:28:26.000000000 +0000
+++ nforenum-r2309/data.cpp 2010-06-08 21:00:33.000000000 +0100
@@ -648,7 +648,7 @@
if(dir=="")return false;
struct stat Stat;
if(dir[dir.length()-1]=='\\'||dir[dir.length()-1]=='/')
- dir[dir.length()-1]='\0';
+ dir.resize(dir.length()-1);
if(stat((dir+"/.renum").c_str(),&Stat))return false;
else if(Stat.st_mode&S_IFREG)return false;
return true;
|