You could make all three buffers const char.