API: fix a possible undetected integer overflow
1 file changed