summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ivy.c b/src/ivy.c
index f9d5f23..270711c 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -918,12 +918,13 @@ static void substituteInterval (IvyBuffer *src)
if (strstr (src->data, "(?I") == NULL) {
return;
} else {
+ char *curPos;
+ char *itvPos;
IvyBuffer dst = {NULL, 0, 0};
dst.size = 8192;
dst.data = malloc (dst.size);
- char *curPos = src->data;
- char *itvPos;
+ curPos = src->data;
while ((itvPos = strstr (curPos, "(?I")) != NULL) {
// copie depuis la position courante jusqu'à l'intervalle
int lenCp, min,max;