small gui_getWindow fix.

If a window title longer than 255 characters was passed a crash would
occur.