Hi,
I have a new laptop with linux Fedora 40 installed.
Now I'm compiling linrad 5.02 on it. After solving most of the issues, I encountered the error below during the make proces, which I could not solve. Does anyone have a suggestion?
hid.c: In functie ‘hid_enumerate’:
hid.c:1340:33: fout: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-truncation]
1340 | strncpy(cur_dev->path, str, len+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hid.c:1338:39: note: length computed here
1338 | len = strlen(str);
| ^~~~~~~~~~~
cc1: alle waarschuwingen worden als fouten behandeld
make: *** [Makefile:2248:
hid.om] Fout 1
73 Rob PE1ITR