diff options
Diffstat (limited to 'textproc/mdocml/files/patch-mdoc_validate.c')
-rw-r--r-- | textproc/mdocml/files/patch-mdoc_validate.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/mdocml/files/patch-mdoc_validate.c b/textproc/mdocml/files/patch-mdoc_validate.c new file mode 100644 index 000000000000..2660539e37d6 --- /dev/null +++ b/textproc/mdocml/files/patch-mdoc_validate.c @@ -0,0 +1,11 @@ +--- mdoc_validate.c ++++ mdoc_validate.c +@@ -2143,6 +2143,8 @@ post_os(POST_ARGS) + mdoc_nmsg(m, n, MANDOCERR_MEM); + return(0); + } ++ if (strncmp(utsname.sysname, "FreeBSD", sizeof("FreeBSD")) == 0) ++ strtok(utsname.release, "-"); + if (strlcat(buf, utsname.release, BUFSIZ) >= BUFSIZ) { + mdoc_nmsg(m, n, MANDOCERR_MEM); + return(0); |