GCC: ‘strncat’ output may be truncated [-Werror=stringop-truncation]. What does it mean and how to fix it?

后端 未结 0 853
栀梦
栀梦 2020-12-03 21:11

I get this warning with gcc -std=gnu17 -Wall -Werror -Wshadow -O3 test.c:

error: ‘strncat’ output may be truncated copying between 0 and 77 bytes         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题