From a729f1a0daa1c6a757835b15adcf7f3a2e6d3ef5 Mon Sep 17 00:00:00 2001 From: Kray-G Date: Tue, 17 Aug 2021 12:24:24 +0900 Subject: [PATCH] #232: updated lexer.c --- src/lexer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lexer.c b/src/lexer.c index f4c6d2d5..8df379b8 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -296,10 +296,12 @@ static int process_using(void) while (pos < POSMAX && (kx_is_filechar(kx_lexinfo) || kx_lexinfo.ch == '*')) { if (is_package) { if (is_package_version == 0 && kx_lexinfo.ch == '.') { + kx_strbuf[pos] = 0; pkgname = kx_const_str(g_parse_ctx, kx_strbuf + is_package_namepos); pos = set_package_version(pkgname, pos); is_package_version = 2; } else if (is_package_version == 0 && kx_lexinfo.ch == '(') { + kx_strbuf[pos] = 0; pkgname = kx_const_str(g_parse_ctx, kx_strbuf + is_package_namepos); is_package_version = 1; kx_strbuf[pos++] = PATH_DELCH;