Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc 8 breaks build #89

Open
0-wiz-0 opened this issue Dec 1, 2019 · 0 comments
Open

gcc 8 breaks build #89

0-wiz-0 opened this issue Dec 1, 2019 · 0 comments

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Dec 1, 2019

On NetBSD 9.99.17 with gcc 8, pkgin does not compile:

--- tools.o ---
In file included from /usr/include/string.h:127,
                 from /scratch/pkgtools/pkgin/work/libnbcompat/nbcompat/string.h:36,
                 from /scratch/pkgtools/pkgin/work/libnbcompat/nbcompat.h:62,
                 from tools.h:37,
                 from tools.c:30:
tools.c: In function 'strreplace':
tools.c:170:4: error: '__builtin___strncat_chk' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=str
ingop-truncation]
    strncat(buf, to, tolen);
    ^~~~~~~
tools.c:166:10: note: length computed here
  tolen = strlen(to);
          ^~~~~~~~~~

Please fix :)
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant