changeset 2119 | 3b26f3a58cb9 |
parent 2111 | 9023a6f2bf6c |
child 2133 | 69d00a118c0c |
--- a/mcabber/mcabber/utils.c Mon Jun 09 10:01:48 2014 +0200 +++ b/mcabber/mcabber/utils.c Tue Jun 24 18:56:24 2014 +0200 @@ -589,13 +589,17 @@ if (*p == '"') { if (!escape) { instring = !instring; - strcpy(p, p+1); + //memmove(p, p+1, strlen(p)); + for (char *t=p; *t; t++) + *t = *(t+1); p--; } else escape = FALSE; } else if (*p == '\\') { if (!escape) { - strcpy(p, p+1); + //memmove(p, p+1, strlen(p)); + for (char *t=p; *t; t++) + *t = *(t+1); p--; } escape = !escape;