summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
authorfcolin2006-09-22 08:55:57 +0000
committerfcolin2006-09-22 08:55:57 +0000
commit0e1ee0d3f027489c978e27ed5ed3572067234a61 (patch)
tree3839181689a07ddeaf62e0d8e58cd27dbb76e18e /src/ivy.c
parentf4a57e2457d96fefb31e62a940d20120384d99dc (diff)
downloadivy-c-0e1ee0d3f027489c978e27ed5ed3572067234a61.zip
ivy-c-0e1ee0d3f027489c978e27ed5ed3572067234a61.tar.gz
ivy-c-0e1ee0d3f027489c978e27ed5ed3572067234a61.tar.bz2
ivy-c-0e1ee0d3f027489c978e27ed5ed3572067234a61.tar.xz
portage WIN32
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;