Chromium Code Reviews| 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 == ' '))) { |
|
dhendrix
2011/03/10 01:33:51
Is isascii() required if isalnum() used?
Louis
2011/03/10 08:22:51
I think isalnum() is locale-dependent implementati
|
| *name = '_'; |
| } |
| name++; |