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)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 14:44:23 +0000 (14:44 +0000)
citadel/modules/migrate/serv_migrate.c

index d85843dc3d5956f7285671f0a2d3c58134f52cfd..0a69a1a82f5730bab87199f16c2e46efab8b00a4 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);