Thomas Dickey <tom@invisible-island.net> writes: > char buf[5]; [...] > The buf variable contains "Key01" So 6 bytes. Does this still happen if you don't overrun buf? Also, can you send a complete test case? -- Falk