BelledonneCommunications / bctoolbox

Linphone.org mirror for bctoolbox (git://git.linphone.org/bctoolbox.git)
http://linphone.org
GNU General Public License v3.0
25 stars 33 forks source link

make gcc happy #5

Open thrasibule opened 6 years ago

thrasibule commented 6 years ago

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);
davisRoman commented 5 years ago

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