bctoolbox icon indicating copy to clipboard operation
bctoolbox copied to clipboard

make gcc happy

Open thrasibule opened this issue 7 years ago • 1 comments

The current code errors out with the new warning introduced with gcc 8.1.

error: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
   strncat(dst,ret,retlen);

thrasibule avatar May 10 '18 23:05 thrasibule

@thrasibule I tried your patch with gcc 8.3 and it worked for me. Thank you!

davisRoman avatar Jun 10 '19 15:06 davisRoman