Prevent a possible buffer overflow