diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-07 00:50:43 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-07 00:50:43 +0100 |
commit | e649e73f0908678bbdcddb38c9dd0ae13d626626 (patch) | |
tree | 0f5635affd3985bfec6d99c13ea76676eb3b06a7 /src/mds-kbdc | |
parent | mds-kbdc: m (diff) | |
download | mds-e649e73f0908678bbdcddb38c9dd0ae13d626626.tar.gz mds-e649e73f0908678bbdcddb38c9dd0ae13d626626.tar.bz2 mds-e649e73f0908678bbdcddb38c9dd0ae13d626626.tar.xz |
mds-kbdc: derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/compile-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-kbdc/compile-layout.c b/src/mds-kbdc/compile-layout.c index f393511..2993528 100644 --- a/src/mds-kbdc/compile-layout.c +++ b/src/mds-kbdc/compile-layout.c @@ -466,10 +466,10 @@ static void check_function_call(const mds_kbdc_tree_t* restrict tree, const char /* Copy the name of the function. */ name = alloca((size_t)(bracket - raw) * sizeof(char)); memcpy(name, raw + 1, (size_t)(bracket - raw - 1) * sizeof(char)); - name[bracket - raw - 1] = 0; + name[bracket++ - raw - 1] = 0; /* Get the number of arguments used, and check function calls there too. */ - arg_count = check_function_calls_in_literal_(tree, raw, lineoff, end, rc); + arg_count = check_function_calls_in_literal_(tree, bracket, lineoff + (size_t)(bracket - raw), end, rc); if (*rc < 0) return; /* Check that the function is defined. */ |