summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-11-11 02:28:01 +0100
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:23 +0900
commitb6e2b2aa6cc8cc1826080146264a728b0f35a711 (patch)
tree9466b06f75ecb97554a902291ebab9ba113ae392
parentbcc1cb28213a180093ff29714d2baef87ce6a45d (diff)
downloadltrace-b6e2b2aa6cc8cc1826080146264a728b0f35a711.tar.gz
ltrace-b6e2b2aa6cc8cc1826080146264a728b0f35a711.tar.bz2
ltrace-b6e2b2aa6cc8cc1826080146264a728b0f35a711.zip
When a typedef X_t is requested, don't match lens named X instead
-rw-r--r--read_config_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read_config_file.c b/read_config_file.c
index b59cff4..991f121 100644
--- a/read_config_file.c
+++ b/read_config_file.c
@@ -696,7 +696,8 @@ try_parse_kwd(char **str, const char *kwd)
{
size_t len = strlen(kwd);
if (strncmp(*str, kwd, len) == 0
- && !isalnum(CTYPE_CONV((*str)[len]))) {
+ && !isalnum(CTYPE_CONV((*str)[len]))
+ && (*str)[len] != '_') {
(*str) += len;
return 0;
}