Hello, Michael > if (res == buff_size) { > // '\0' was not written, do it Shouldn't we return an error in such situation? -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.