X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/77315a51c1fb97dc07e1de1105551f8250cdde31..bb3b912b0a43b8b740a05ad1d15686e68f8e3f39:/src/parse-gram.y diff --git a/src/parse-gram.y b/src/parse-gram.y index 5f46d293..1968e310 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -322,7 +322,7 @@ prologue_declaration: xmalloc (dir_length + 1 + strlen (skeleton_user) + 1); if (dir_length > 0) { - strncpy (skeleton_build, current_file, dir_length); + memcpy (skeleton_build, current_file, dir_length); skeleton_build[dir_length++] = '/'; } strcpy (skeleton_build + dir_length, skeleton_user); @@ -758,8 +758,8 @@ version_check (location const *loc, char const *version) if (strverscmp (version, PACKAGE_VERSION) > 0) { complain_at (*loc, "require bison %s, but have %s", - version, PACKAGE_VERSION); - exit (63); + version, PACKAGE_VERSION); + exit (EX_MISMATCH); } }