diff options
Diffstat (limited to 'protocols/Xfire/src/variables.cpp')
-rw-r--r-- | protocols/Xfire/src/variables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Xfire/src/variables.cpp b/protocols/Xfire/src/variables.cpp index 1dd8d5ffac..eff15227c4 100644 --- a/protocols/Xfire/src/variables.cpp +++ b/protocols/Xfire/src/variables.cpp @@ -194,9 +194,9 @@ char* XFireGetFoldersPath(char * pathtype) strcat(BaseFolder, "\\");
CallService(MS_DB_GETPROFILENAME, (WPARAM)MAX_PATH, (LPARAM)CurProfileF);
int i;
- for (i = MAX_PATH; 5; i--){
+ for (i = MAX_PATH - 1; i > 5; i--){
if (CurProfileF[i] == 't' && CurProfileF[i - 3] == '.'){
- i = i - 3;
+ i -= 3;
break;
}
}
|