don't end a string if the last character outputted was an escape, will cause output file to be invalid

svn path=/branches/xmlbuildsystem/; revision=13995
This commit is contained in:
Royce Mitchell III
2005-03-13 07:37:33 +00:00
parent 4f130648e1
commit 9a2cf81bc4
+3 -3
View File
@@ -360,7 +360,7 @@ static char *make_string(WCHAR *uc, int len, int codepage)
cptr += n;
b += n;
}
if(i < len-1 && b >= 72)
if(i < len-1 && b >= 72 && cptr[-1] != '\\')
{
*cptr++ = '"';
*cptr++ = ',';
@@ -424,7 +424,7 @@ static char *make_string(WCHAR *uc, int len, int codepage)
b += n;
}
}
if(i < len-1 && b >= 72)
if(i < len-1 && b >= 72 && cptr[-1] != '\\')
{
*cptr++ = '"';
*cptr++ = ',';
@@ -577,7 +577,7 @@ void write_bin_files(void)
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++)