# HG changeset patch # User Mikael Berthe # Date 1403636326 -7200 # Node ID 69d00a118c0c19dba80ecc42537f40db3a025133 # Parent a09cdfceae172c90c03dff09bd13efcd7e42e440 Fix ANSI C-incompatible change diff -r a09cdfceae17 -r 69d00a118c0c mcabber/mcabber/utils.c --- a/mcabber/mcabber/utils.c Tue Jun 24 20:42:29 2014 +0200 +++ b/mcabber/mcabber/utils.c Tue Jun 24 20:58:46 2014 +0200 @@ -581,7 +581,7 @@ { int instring = FALSE; int escape = FALSE; - char *p; + char *p, *t; if (!s) return; @@ -590,7 +590,7 @@ if (!escape) { instring = !instring; //memmove(p, p+1, strlen(p)); - for (char *t=p; *t; t++) + for (t=p; *t; t++) *t = *(t+1); p--; } else @@ -598,7 +598,7 @@ } else if (*p == '\\') { if (!escape) { //memmove(p, p+1, strlen(p)); - for (char *t=p; *t; t++) + for (t=p; *t; t++) *t = *(t+1); p--; }