diff options
Diffstat (limited to 'pcilib/py.c')
-rw-r--r-- | pcilib/py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/py.c b/pcilib/py.c index 3a4fd96..def050e 100644 --- a/pcilib/py.c +++ b/pcilib/py.c @@ -108,7 +108,7 @@ static char *pcilib_py_parse_string(pcilib_t *ctx, const char *codestr, pcilib_v // find the end of the register name reg++; - for (i = 0; isalnum(reg[i]); i++); + for (i = 0; isalnum(reg[i])||(reg[i] == '_'); i++); save = reg[i]; reg[i] = 0; |