aboutsummaryrefslogtreecommitdiff
path: root/coreutils/od_bloaty.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-07-24 11:40:28 +0100
committerRon Yorston <rmy@pobox.com>2017-07-24 12:03:28 +0100
commit60411636073cdc08e8005f0de00098e6dd00eaf5 (patch)
tree58673b64af1e663280be81f798c8f66ce116d1dd /coreutils/od_bloaty.c
parenteeceafbc5c4caf513c6d92b7d71ecb0ccd89a3f8 (diff)
parentb72f1ef17b97802d33f0ac522f64bea0f65442c5 (diff)
downloadbusybox-w32-60411636073cdc08e8005f0de00098e6dd00eaf5.tar.gz
busybox-w32-60411636073cdc08e8005f0de00098e6dd00eaf5.tar.bz2
busybox-w32-60411636073cdc08e8005f0de00098e6dd00eaf5.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r--coreutils/od_bloaty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c
index b02fb09bd..513c8ef37 100644
--- a/coreutils/od_bloaty.c
+++ b/coreutils/od_bloaty.c
@@ -672,7 +672,7 @@ decode_one_format(const char *s_orig, const char *s, struct tspec *tspec)
672 fmt = FLOATING_POINT; 672 fmt = FLOATING_POINT;
673 ++s; 673 ++s;
674 p = strchr(FDL, *s); 674 p = strchr(FDL, *s);
675 if (!p) { 675 if (!p || *p == '\0') {
676 size = sizeof(double); 676 size = sizeof(double);
677 if (isdigit(s[0])) { 677 if (isdigit(s[0])) {
678 size = bb_strtou(s, &end, 0); 678 size = bb_strtou(s, &end, 0);
@@ -693,6 +693,7 @@ decode_one_format(const char *s_orig, const char *s, struct tspec *tspec)
693 }; 693 };
694 694
695 size = FDL_sizeof[p - FDL]; 695 size = FDL_sizeof[p - FDL];
696 s++; /* skip F/D/L */
696 } 697 }
697 698
698 size_spec = fp_type_size[size]; 699 size_spec = fp_type_size[size];