X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/520144aadc34f57ac0572ded66ab62fc32cb3069..b921d92fcbdb2c19fe2c6158e9a5181d451b976a:/src/scan-gram.l diff --git a/src/scan-gram.l b/src/scan-gram.l index fa200d64..d375fc12 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -941,8 +941,8 @@ handle_syncline (char *args, location loc) { char *after_num; unsigned long int lineno = strtoul (args, &after_num, 10); - char *file = mbschr (after_num, '"') + 1; - *mbschr (file, '"') = '\0'; + char *file = strchr (after_num, '"') + 1; + *strchr (file, '"') = '\0'; if (INT_MAX <= lineno) { warn_at (loc, _("line number overflow"));