ioports.c change -> buffer overflow ... bug?