[Geany-devel] [geanygdb plugin] Stack overflow when activating it.

Thomas Martitz thomas.martitz at xxxxx
Thu Sep 3 10:27:39 UTC 2009

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.

More information about the Devel mailing list