On Tue, Feb 12, 2019 at 06:13:00PM +0100, Joerg Sonnenberger wrote: > snprintf *does* guarantee that. You are confusing this with strncpy. As I said, I fail to parse the gcc warning. But using the return value quells it. But of course you are right and it makes absolutely no sense at all to me. Martin