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

Compile error on win7 64bit #29

Open
viney opened this issue Dec 25, 2020 · 1 comment
Open

Compile error on win7 64bit #29

viney opened this issue Dec 25, 2020 · 1 comment

Comments

@viney
Copy link

viney commented Dec 25, 2020

$ go build

github.com/karalabe/hid

In file included from .\hid_enabled.go:40:
./hidapi/windows/hid.c: In function 'hid_enumerate':
./hidapi/windows/hid.c:431:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(cur_dev->path, str, len+1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./hidapi/windows/hid.c:429:11: note: length computed here
len = strlen(str);
^~~~~~~~~~~

@dolmen
Copy link
Contributor

dolmen commented Jan 13, 2022

This is not a compile error but a warning.

This should be fixed by upgrading hidapi. See #35.

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

2 participants