Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: lib/fmap.c

Issue 6646016: leverage flashrom fast partial read function to speed up VPD read. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpd.git@master
Patch Set: refine code to handle corner case of eps->table_address. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/flashrom.c ('k') | vpd.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/fmap.c
diff --git a/lib/fmap.c b/lib/fmap.c
index 26ff6b169b3e3e49cdec58fee96aa3f67ccf3790..15f01729ed2bae06853ed630ff62d257c14bf110 100644
--- a/lib/fmap.c
+++ b/lib/fmap.c
@@ -52,7 +52,7 @@ void fmapNormalizeAreaName(uint8_t *name) {
assert(name);
while (*name) {
- if (!(isascii(*name) && isalnum(*name))) {
+ if (!(isascii(*name) && (isalnum(*name) || *name == ' '))) {
*name = '_';
}
name++;
« no previous file with comments | « lib/flashrom.c ('k') | vpd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698