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.
Hi all.
The trouble is caused by unsafe usage of `strncpy' and long strings in
Russian localization. I found that the stack overflow is caused by the
following code (geany-plugins/geanygdb/src/gdb-ui-main.c : 366)
8
if (text disable_mnemonics)
{
On Wed, 02 Sep 2009 20:48:17 +0400, Eugene wrote:
Hi all.
The trouble is caused by unsafe usage of `strncpy' and long strings in
Russian localization. I found that the stack overflow is caused by the
following code (geany-plugins/geanygdb/src/gdb-ui-main.c : 366)
8