Fix another potential buffer overflow.