diff options
| author | George Hazan <ghazan@miranda.im> | 2017-02-06 22:21:47 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2017-02-06 22:21:47 +0300 |
| commit | 17d8c0bb68eef6817c1f03a2abd5752e01b93ce9 (patch) | |
| tree | bc8e2016d629542553f9c540417572978348318a | |
| parent | 6ab3a1af91a51d86d0c85ebbf44dcbdb549e1af5 (diff) | |
fix for an array bounds overflow
| -rw-r--r-- | src/mir_app/src/proto_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/proto_utils.cpp b/src/mir_app/src/proto_utils.cpp index 6ba435414e..101907b263 100644 --- a/src/mir_app/src/proto_utils.cpp +++ b/src/mir_app/src/proto_utils.cpp @@ -251,7 +251,7 @@ static wchar_t *wszMimeTypes[] = MIR_APP_DLL(const wchar_t*) ProtoGetAvatarMimeType(int iFileType)
{
- if (iFileType >= 0 && iFileType <= _countof(wszMimeTypes))
+ if (iFileType >= 0 && iFileType < _countof(wszMimeTypes))
return wszMimeTypes[iFileType];
return NULL;
}
|
