1
0
forked from pool/util-linux
util-linux/util-linux-slash-in-format-string.patch
Marcus Meissner fc2658a44f Accepting request 246438 from home:pgajdos
- fix parsing of slash in the format string [bnc#889934] (internal)
- added patches:
  * util-linux-slash-in-format-string.patch

OBS-URL: https://build.opensuse.org/request/show/246438
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=253
2014-08-26 13:58:36 +00:00

28 lines
720 B
Diff

From 82233c2a0a4cce89307061bdc7ffdb58c4936d4f Mon Sep 17 00:00:00 2001
From: HUANG Wei <weih@opera.com>
Date: Wed, 6 Aug 2014 12:20:18 +0800
Subject: [PATCH] hexdump: Fix parse format of "byte count without repetition
count"
---
text-utils/hexdump-parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/text-utils/hexdump-parse.c b/text-utils/hexdump-parse.c
index 37e7086..8d14c5b 100644
--- a/text-utils/hexdump-parse.c
+++ b/text-utils/hexdump-parse.c
@@ -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)) {
--
2.0.4