commit | 7f9b651aed15b33bcdf4e3c26d34791de55d2f8a | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Wed Sep 18 13:11:09 2019 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Sep 18 13:11:09 2019 +0200 |
tree | 4e816518662a303b469c1354737fb8290af366a8 | |
parent | b3289d6afb339aac58106d7cb9e29e471cdaa2ad [diff] [blame] |
common CHANGE new ly_strncmp() compare NULL-terminated reference string with a number of bytes from other string.
diff --git a/src/parser_yang.c b/src/parser_yang.c index e6830d3..314cbd7 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -2171,7 +2171,7 @@ return LY_EVALID; } - if (strncmp(word, "unbounded", word_len)) { + if (ly_strncmp("unbounded", word, word_len)) { errno = 0; num = strtoul(word, &ptr, 10); /* we have not parsed the whole argument */