summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-06-13 13:25:08 +0000
committerTom Hacohen <tom@stosb.com>2011-06-13 13:25:08 +0000
commitb0f58c2b27a7a5f31d3b25ad7873361c728c1081 (patch)
tree575fd78d073212dd48c88f0615edd996d8b00e58 /legacy/elementary
parent5b300889110118d2c7b5ba317a64497eba57c34d (diff)
Elm cnp: Fix string bounds checking.
Patch by Hyoyoung Chang. SVN revision: 60269
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/lib/elm_cnp_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_cnp_helper.c b/legacy/elementary/src/lib/elm_cnp_helper.c
index 6d21702643..45a969a613 100644
--- a/legacy/elementary/src/lib/elm_cnp_helper.c
+++ b/legacy/elementary/src/lib/elm_cnp_helper.c
@@ -1198,7 +1198,7 @@ mark_up(const char *start, int inlen, int *lenp)
1198 q = ret = malloc(l + 1); 1198 q = ret = malloc(l + 1);
1199 1199
1200 /* Second pass: Change characters */ 1200 /* Second pass: Change characters */
1201 for (p = start; *p; ) 1201 for (p = start; ((!endp) || (p < endp)) && (*p); )
1202 { 1202 {
1203 for (i = 0; i < N_ESCAPES; i++) 1203 for (i = 0; i < N_ESCAPES; i++)
1204 { 1204 {