don't end a string if the last character outputted was an escape, will cause output file to be invalid Modified: branches/xmlbuildsystem/reactos/tools/wmc/write.c _____
Modified: branches/xmlbuildsystem/reactos/tools/wmc/write.c --- branches/xmlbuildsystem/reactos/tools/wmc/write.c 2005-03-13 06:31:38 UTC (rev 13994) +++ branches/xmlbuildsystem/reactos/tools/wmc/write.c 2005-03-13 07:37:33 UTC (rev 13995) @@ -360,7 +360,7 @@
cptr += n; b += n; } - if(i < len-1 && b >= 72) + if(i < len-1 && b >= 72 && cptr[-1] != '\') { *cptr++ = '"'; *cptr++ = ','; @@ -424,7 +424,7 @@ b += n; } } - if(i < len-1 && b >= 72) + if(i < len-1 && b >= 72 && cptr[-1] != '\') { *cptr++ = '"'; *cptr++ = ','; @@ -577,7 +577,7 @@
for (lbp = lanblockhead; lbp; lbp = lbp->next) { - unsigned offs = 4 * (lbp->nblk * 3 + 1); + unsigned offs = 4 * (lbp->nblk * 3 + 1);
char *cptr = NULL; for(i = 0; i < ntab; i++)