]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hexdump: Fix parse format of "byte count without repetition count"
authorHUANG Wei <weih@opera.com>
Wed, 6 Aug 2014 04:20:18 +0000 (12:20 +0800)
committerHUANG Wei <weih@opera.com>
Wed, 6 Aug 2014 04:20:18 +0000 (12:20 +0800)
text-utils/hexdump-parse.c

index 37e708611f6e2046cdb54867cd50d205559dd793..8d14c5b980c2d3f80cabcc3515a4caa867db927e 100644 (file)
@@ -141,7 +141,7 @@ void add_fmt(const char *fmt, struct hexdump *hex)
 
                /* Skip slash and trailing white space. */
                if (*p == '/')
-                       p = skip_space(p);
+                       p = skip_space(++p);
 
                /* byte count */
                if (isdigit(*p)) {