projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c008a73
)
bc: tweak comment
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 11 Dec 2018 20:21:14 +0000
(21:21 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 11 Dec 2018 20:21:14 +0000
(21:21 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
patch
|
blob
|
history
diff --git
a/miscutils/bc.c
b/miscutils/bc.c
index 9f05cad0ce734f382ac612497836c20069818075..143bb64b18e6a19b64f1386e1e8ace3d5936eb95 100644
(file)
--- a/
miscutils/bc.c
+++ b/
miscutils/bc.c
@@
-5586,8
+5586,9
@@
static char *bc_program_name(char *code, size_t *bgn)
static void bc_program_printString(const char *str)
{
#if ENABLE_DC
- // Huh? Example when this happens?
if (!str[0]) {
+ // Example: echo '[]ap' | dc
+ // should print two bytes: 0x00, 0x0A
bb_putchar('\0');
return;
}