plug _another_ %; versus %N output formatting bug

(apparently, nobody noticed them because everyone outputted to files,
not to strings, and this logic differs for those)
This commit is contained in:
tg 2011-03-06 02:14:09 +00:00
parent c995f7ca98
commit 14d8cecc82
1 changed files with 2 additions and 2 deletions

4
tree.c
View File

@ -22,7 +22,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.33 2011/03/06 00:52:02 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/tree.c,v 1.34 2011/03/06 02:14:09 tg Exp $");
#define INDENT 4 #define INDENT 4
@ -154,7 +154,7 @@ ptree(struct op *t, int indent, struct shf *shf)
fptreef(shf, indent, "%;done "); fptreef(shf, indent, "%;done ");
break; break;
case TBRACE: case TBRACE:
fptreef(shf, indent + INDENT, "{%;%T", t->left); fptreef(shf, indent + INDENT, "{%N%T", t->left);
fptreef(shf, indent, "%;} "); fptreef(shf, indent, "%;} ");
break; break;
case TCOPROC: case TCOPROC: