From 8637d3cb31dc18a65363f082ee992e2e5ccc0c61 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 13 Feb 2016 16:15:41 +0100 Subject: [PATCH] Fixed issue #263 --- retroshare-gui/src/gui/common/Emoticons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }