diff options
author | Ron Yorston <rmy@pobox.com> | 2015-03-14 20:33:00 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-03-14 20:33:00 +0000 |
commit | a4f58436b78fe59e57620c6e0301f213ee25f273 (patch) | |
tree | 8355f724926e605280af2d6f2b1ccc6b1bd02dee /coreutils/od_bloaty.c | |
parent | ba0c36cfcf84efbac6f89e27238e04bb57e9cd45 (diff) | |
parent | 49acc1a7618a28d34381cbb7661d7c981fcb238f (diff) | |
download | busybox-w32-a4f58436b78fe59e57620c6e0301f213ee25f273.tar.gz busybox-w32-a4f58436b78fe59e57620c6e0301f213ee25f273.tar.bz2 busybox-w32-a4f58436b78fe59e57620c6e0301f213ee25f273.zip |
Merge branch 'busybox' into merge
Conflicts:
coreutils/od_bloaty.c
libbb/lineedit.c
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 34ceefb1c..1e7c5bfa0 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -395,10 +395,10 @@ print_named_ascii(size_t n_bytes, const char *block, | |||
395 | }; | 395 | }; |
396 | // buf[N] pos: 01234 56789 | 396 | // buf[N] pos: 01234 56789 |
397 | char buf[12] = " x\0 xxx\0"; | 397 | char buf[12] = " x\0 xxx\0"; |
398 | // share string with print_ascii. | ||
399 | // [12] because we take three 32bit stack slots anyway, and | 398 | // [12] because we take three 32bit stack slots anyway, and |
400 | // gcc is too dumb to initialize with constant stores, | 399 | // gcc is too dumb to initialize with constant stores, |
401 | // it copies initializer from rodata. Oh well. | 400 | // it copies initializer from rodata. Oh well. |
401 | // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65410 | ||
402 | 402 | ||
403 | while (n_bytes--) { | 403 | while (n_bytes--) { |
404 | unsigned masked_c = *(unsigned char *) block++; | 404 | unsigned masked_c = *(unsigned char *) block++; |
@@ -462,9 +462,6 @@ print_ascii(size_t n_bytes, const char *block, | |||
462 | case '\v': | 462 | case '\v': |
463 | s = " \\v"; | 463 | s = " \\v"; |
464 | break; | 464 | break; |
465 | case '\x7f': | ||
466 | s = " 177"; | ||
467 | break; | ||
468 | default: | 465 | default: |
469 | buf[6] = (c >> 6 & 3) + '0'; | 466 | buf[6] = (c >> 6 & 3) + '0'; |
470 | buf[7] = (c >> 3 & 7) + '0'; | 467 | buf[7] = (c >> 3 & 7) + '0'; |