Fix ANSI C-incompatible change
authorMikael Berthe <mikael@lilotux.net>
Tue, 24 Jun 2014 20:58:46 +0200
changeset 2133 69d00a118c0c
parent 2132 a09cdfceae17
child 2134 fc7a758ebbde
Fix ANSI C-incompatible change
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--;
       }