blu3bird / OpenHybrid

GNU General Public License v3.0
17 stars 8 forks source link

Build fails: strncpy’ output truncated before terminating nul copying as many bytes from a string as its length #4

Open Rot127 opened 3 years ago

Rot127 commented 3 years ago

Build fails for newer gcc versions (I think beginning from ver. 8) with: strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] for the files:

Workaround: Replace strncpy with memcpy.

Though this doesn't solve the truncation problem here!