X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3e75a2c92b12766add442d00a86d5ec1c67ce560..c0beb08772ddefc0e8bb705b08cebc71ec92815d:/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"));