summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/language
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2012-12-13 14:17:33 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2012-12-13 14:17:33 +0000
commit2dc790bf47eef4d1e043ca5d7fbfca7b5c4b4dd3 (patch)
tree1ecb15ece6d98016a6d9b9ebfb4b52bcd5c29956 /src/lib/evas/common/language
parent77b2e630027d057221c471906344d9a588f54f3d (diff)
evas/bidi: Make sure we access the correct memory here.
Without that it would crash as we just freed it and assigned the realloc code to tmp_ret. SVN revision: 80863
Diffstat (limited to 'src/lib/evas/common/language')
-rw-r--r--src/lib/evas/common/language/evas_bidi_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/common/language/evas_bidi_utils.c b/src/lib/evas/common/language/evas_bidi_utils.c
index 0656d57371..8ad70ac000 100644
--- a/src/lib/evas/common/language/evas_bidi_utils.c
+++ b/src/lib/evas/common/language/evas_bidi_utils.c
@@ -184,6 +184,7 @@ evas_bidi_segment_idxs_get(const Eina_Unicode *str, const char *delim)
184 free(ret); 184 free(ret);
185 return NULL; 185 return NULL;
186 } 186 }
187 ret = tmp_ret;
187 } 188 }
188 ret[ret_idx++] = str - str_base; 189 ret[ret_idx++] = str - str_base;
189 break; 190 break;