Coding standards: s/1024/sizeof(buffer)/w.