changeset 2133:69d00a118c0c

Fix ANSI C-incompatible change
author Mikael Berthe <mikael@lilotux.net>
date Tue, 24 Jun 2014 20:58:46 +0200
parents a09cdfceae17
children fc7a758ebbde
files mcabber/mcabber/utils.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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--;
       }