Fixed incorrect byte count when writing XML entity references
authorArt Cancro <ajc@citadel.org>
Wed, 23 Feb 2011 16:41:12 +0000 (11:41 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 23 Feb 2011 16:41:37 +0000 (11:41 -0500)
(cherry picked from commit 77fc8e79ee0edb8b4b67fc4dcb3ed1b32381cb52)

citadel/modules/migrate/serv_migrate.c

index ae149e078bb703dd763f508ed040ac44511b0123..b51ce403ec88466f7dcdd395af8da6e3e11b4a60 100644 (file)
@@ -85,10 +85,10 @@ void xml_strout(char *str) {
 
        while (*c != 0) {
                if (*c == '\"') {
-                       client_write("&quot;", 4);
+                       client_write("&quot;", 6);
                }
                else if (*c == '\'') {
-                       client_write("&apos;", 4);
+                       client_write("&apos;", 6);
                }
                else if (*c == '<') {
                        client_write("&lt;", 4);