summary refs log tree commit diff
path: root/src/bltin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bltin')
-rw-r--r--src/bltin/printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bltin/printf.c b/src/bltin/printf.c
index a626cee..ec7c8c2 100644
--- a/src/bltin/printf.c
+++ b/src/bltin/printf.c
@@ -209,6 +209,7 @@ pc:
 				if (print_escape_str(start, param, array,
 						     getstr()))
 					goto out;
+				*fmt = 'b';
 				break;
 			case 'c': {
 				int p = getchr();