diff --git a/retroshare-gui/src/gui/common/Emoticons.cpp b/retroshare-gui/src/gui/common/Emoticons.cpp index 6e03aed4a..d905c5559 100644 --- a/retroshare-gui/src/gui/common/Emoticons.cpp +++ b/retroshare-gui/src/gui/common/Emoticons.cpp @@ -73,7 +73,7 @@ void Emoticons::load() int i = 0; QString smcode; QString smfile; - while(sm_codes[i] != '{') + while(i < sm_codes.length() && sm_codes[i] != '{') { ++i; }