summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2012-04-14 16:21:39 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-04-21 09:35:10 +0200
commitc3fc4b933708a594d169e40a82d5f29f304d11c9 (patch)
tree5ddf19cbca2b2247e495f3270e343da8f0a43611
parent26b00e6d3954dcfa00ee4d7c874161b2fbdd2ce2 (diff)
downloadcoreboot-c3fc4b933708a594d169e40a82d5f29f304d11c9.tar.xz
nvramtool: Allow spaces in enumeration names
Change-Id: Id526e74f06fb15d4692d7b6edc8b5863f2d42c50 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/901 Tested-by: build bot (Jenkins)
-rw-r--r--util/nvramtool/accessors/layout-text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvramtool/accessors/layout-text.c b/util/nvramtool/accessors/layout-text.c
index 5f7cadea97..cbe698c504 100644
--- a/util/nvramtool/accessors/layout-text.c
+++ b/util/nvramtool/accessors/layout-text.c
@@ -149,7 +149,7 @@ static const char enums_line_regex[] =
/* followed by one or more whitespace characters */
"[[:space:]]+"
/* followed by a chunk of nonwhitespace for text field */
- "([^[:space:]]+)"
+ "([[:print:]]*[^[:space:]])"
/* followed by optional whitespace */
"[[:space:]]*$";