Enrico Tröger schrieb:
Hmm, right.
Still, IMO it's weird to set \o at sizeof(buf)-1.
Regards,
Enrico
It may look strage, but it's the only way (and therefore the standard
way) to get around the unsafe nature of strncpy.
/me hints at strlcpy :)
Best regards.