diff options
Diffstat (limited to 'src/libopts/ag-char-map.h')
-rw-r--r-- | src/libopts/ag-char-map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libopts/ag-char-map.h b/src/libopts/ag-char-map.h index ff91b2c928..6999ed4270 100644 --- a/src/libopts/ag-char-map.h +++ b/src/libopts/ag-char-map.h @@ -489,7 +489,8 @@ spn_ag_char_map_chars(char const * p, unsigned int mask_ix) unsigned char const * v = ag_char_map_spanners[mask_ix]; if (v == NULL) v = calc_ag_char_map_spanners(mask_ix); - while (v[(unsigned)*p]) p++; + + while (!isascii(*p) || v[(unsigned)*p]) p++; return (char *)(uintptr_t)p; } |